<template>
  <div>
    <van-tabs>
      <van-tab title="表单信息">
        <div id="Villagetrial">
          <div class="content">
            <div class="top">
              <span>农村宅基地和建房（规划许可）基本信息表</span>
            </div>
            <div class="list">
              <van-tabs v-model="active1" color="#007AFF">
                <van-tab :title="'申请建房户主信息'" v-if="ShowData">
                  <van-form validate-first>
                    <!-- <p class="subTitle">
                  <span class="line"></span> <span style="color: #3f8ffc">申请建房户主信息</span> &nbsp;&nbsp;<span></span>户主信息
                  联建人信息
                </p> -->
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <!-- <span style="color: #ff0000">*</span> -->
                      <van-field :readonly="isread" v-model="JFData.APPLYPHONE" label="手机号" placeholder="请填写手机号" />
                    </div>
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <van-field :readonly="isread" v-model="JFData.HOUSEAPPLICANT" label="姓名" placeholder="请填写姓名" />
                      <span
                        @click="handleSelectUsers"
                        style="padding: 0 4px; line-height: 30px; width: 136px; color: #acacac; background-color: #f4f4f4; border-radius: 4px; border: 1px solid #eee; font-size: 14px"
                        >选择户主姓名</span
                      >
                    </div>
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <span style="color: #ff0000">*</span>
                      <!-- <van-field :readonly="isread" v-model="JFData.sex" label="性别" placeholder="请填写性别" /> -->
                      <van-field readonly clickable name="picker" v-model="sexName" label="性别" placeholder="请填写性别" @click="ENUM.XB = true" />
                      <van-popup v-model="ENUM.XB" position="bottom" get-container="#popup">
                        <van-picker show-toolbar :columns="ENUM.XBARR" value-key="DICNAME" @confirm="onConfirm5" @cancel="ENUM.XB = false" />
                      </van-popup>
                    </div>
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <span style="color: #ff0000">*</span>
                      <van-field :readonly="isread" type="number" maxlength="2" v-model="JFData.AGE" label="年龄" placeholder="请填写年龄" />
                    </div>
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <!-- <span style="color: #ff0000">*</span> -->
                      <van-field :readonly="isread" v-model="JFData.CERTIFICATECODE" label="身份证号码" placeholder="请填写身份证号码" />
                    </div>
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <span style="color: #ff0000">*</span>
                      <van-field :readonly="isread" v-model="JFData.PERMANENTADDR" label="户口所在地" placeholder="请填写户口所在地" />
                    </div>
                  </van-form>
                  <div class="back">
                    <span style="color: red">注:</span>
                    属分户新建，需重新选择申请建房户主。
                  </div>
                </van-tab>
                <van-tab title="户主信息">
                  <van-form validate-first>
                    <!-- <p class="subTitle">
                  <span class="line"></span> <span style="color: #3f8ffc">申请建房户主信息</span> &nbsp;&nbsp;<span></span>户主信息
                  联建人信息
                </p> -->
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <!-- <span style="color: #ff0000">*</span> -->
                      <van-field :readonly="isread" v-model="JFData.SJH" label="手机号" placeholder="请填写手机号" />
                    </div>
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <!-- <span style="color: #ff0000">*</span> -->
                      <van-field :readonly="isread" v-model="JFData.XM" label="姓名" placeholder="请填写姓名" />
                    </div>
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <!-- <span style="color: #ff0000">*</span> -->
                      <!-- <van-field :readonly="isread" v-model="JFData.sex" label="性别" placeholder="请填写性别" /> -->
                      <van-field readonly clickable name="picker" v-model="XB" label="性别" placeholder="请填写性别" @click="ENUM.XB = true" />
                      <van-popup v-model="ENUM.XB" position="bottom" get-container="#popup">
                        <van-picker show-toolbar :columns="ENUM.XBARR" value-key="DICNAME" @confirm="onConfirm" @cancel="ENUM.XB = false" />
                      </van-popup>
                    </div>
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <!-- <span style="color: #ff0000">*</span> -->
                      <van-field :readonly="isread" v-model="JFData.NL" label="年龄" placeholder="请填写年龄" />
                    </div>
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <!-- <span style="color: #ff0000">*</span> -->
                      <van-field :readonly="isread" v-model="JFData.SFZH" label="身份证号码" placeholder="请填写身份证号码" />
                    </div>
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <!-- <span style="color: #ff0000">*</span> -->
                      <van-field :readonly="isread" v-model="JFData.HJDZ" label="户口所在地" placeholder="请填写户口所在地" />
                    </div>
                  </van-form>
                  <div class="back">
                    <span style="color: red">注:</span>
                    属分户新建，需重新选择申请建房户主。
                  </div>
                </van-tab>
                <van-tab title="联建人信息" v-if="showIS">
                  <van-form validate-first>
                    <!-- <p class="subTitle">
                  <span class="line"></span> <span style="color: #3f8ffc">申请建房户主信息</span> &nbsp;&nbsp;<span></span>户主信息
                  联建人信息
                </p> -->
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <!-- <span style="color: #ff0000">*</span> -->
                      <van-field :readonly="isread" v-model="JFData.APPLYPHONE" label="手机号" placeholder="请填写手机号" />
                    </div>
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <!-- <span style="color: #ff0000">*</span> -->
                      <van-field :readonly="isread" v-model="JFData.HOUSEAPPLICANT" label="姓名" placeholder="请填写姓名" />
                    </div>
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <!-- <span style="color: #ff0000">*</span> -->
                      <!-- <van-field :readonly="isread" v-model="JFData.sex" label="性别" placeholder="请填写性别" /> -->
                      <van-field readonly clickable name="picker" v-model="sexName" label="性别" placeholder="请填写性别" @click="ENUM.XB = true" />
                      <van-popup v-model="ENUM.XB" position="bottom" get-container="#popup">
                        <van-picker show-toolbar :columns="ENUM.XBARR" value-key="DICNAME" @confirm="onConfirm5" @cancel="ENUM.XB = false" />
                      </van-popup>
                    </div>
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <!-- <span style="color: #ff0000">*</span> -->
                      <van-field :readonly="isread" v-model="JFData.age" label="年龄" placeholder="请填写年龄" />
                    </div>
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <!-- <span style="color: #ff0000">*</span> -->
                      <van-field :readonly="isread" v-model="JFData.phone" label="身份证号码" placeholder="请填写身份证号码" />
                    </div>
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <!-- <span style="color: #ff0000">*</span> -->
                      <van-field :readonly="isread" v-model="JFData.PERMANENTADDR" label="户口所在地" placeholder="请填写户口所在地" />
                    </div>
                  </van-form>
                  <div class="back">
                    <span style="color: red">注:</span>
                    属分户新建，需重新选择申请建房户主。
                  </div>
                </van-tab>
              </van-tabs>
            </div>
            <div style="margin-left: 0px">
              <van-tabs v-model="active" color="#007AFF">
                <van-tab title="资格判断">
                  <div style="margin-left: 0px">
                    <!-- <p class="subTitle"><span class="line"></span> <span style="color: black">户籍家庭成员信息</span></p> -->
                    <van-collapse v-model="activeNames" v-for="(item, index) in zgData" :key="index" :style="{ position: item.title == '家庭成员信息' ? 'relative' : '' }">
                      <van-collapse-item :title="item.title" :name="index">
                        <el-table size="small" :data="item.tableData" border style="width: 100%" @selection-change="handleSelectionChange10">
                          <el-table-column type="selection" width="55"> </el-table-column>
                          <el-table-column v-for="(it, in1) in item.tablecoums" :key="in1" :prop="it.prop" :label="it.name" align="center">
                            <template slot-scope="scope">
                              <p v-if="item.title == '家庭成员信息' && it.name == '与户主关系'" class="scopeItem">
                                {{
                                  scope.row.YHZGX == '156'
                                    ? '户主'
                                    : scope.row.YHZGX == '267'
                                    ? '孙女'
                                    : scope.row.YHZGX == '28'
                                    ? '夫妻'
                                    : scope.row.YHZGX == '30'
                                    ? '长子'
                                    : scope.row.YHZGX == '166'
                                    ? '次子'
                                    : scope.row.YHZGX == '167'
                                    ? '孙子'
                                    : scope.row.YHZGX == '168'
                                    ? '次女'
                                    : scope.row.YHZGX == '169'
                                    ? '长女'
                                    : '其他亲属'
                                }}
                              </p>
                              <p v-if="it.name == '是否村集体股东'" class="scopeItem">
                                {{ scope.row.IFCJTGD ? (scope.row.IFCJTGD == '5' ? '是' : '否') : '' }}
                              </p>
                              <p v-else-if="it.name == '是否机关事业单位'" class="scopeItem">
                                {{ scope.row.IFJGSYDW ? (scope.row.IFJGSYDW == '5' ? '是' : '否') : '' }}
                              </p>
                              <p v-else-if="it.name == '婚姻状况'" class="scopeItem">
                                {{ scope.row.HYZK ? (scope.row.HYZK == '7' ? '已婚' : scope.row.HYZK == '8' ? '未婚' : '离婚') : '' }}
                              </p>
                              <p v-else-if="it.name == '是否有不动产'" class="scopeItem">
                                {{ scope.row.IFBDC ? (scope.row.IFBDC == '5' ? '是' : '否') : '' }}
                              </p>
                              <p v-else-if="item.title == '家庭成员信息' && it.name == '性别'" class="scopeItem">
                                {{ scope.row.SEX == '3' ? '男' : '女' }}
                              </p>
                              <p v-else-if="item.title == '家庭成员信息' && it.name != '与户主关系'">
                                {{ scope.row[it.prop] }}
                              </p>
                            </template>
                          </el-table-column>
                        </el-table>
                      </van-collapse-item>
                      <van-button v-if="item.title == '家庭成员信息'" type="info" size="small" style="position: absolute; top: 6px; left: 274px" @click="handleAddusers('添加')">添加</van-button>
                      <van-button v-if="item.title == '家庭成员信息'" type="info" size="small" style="position: absolute; top: 6px; left: 230px" @click="handleAddusers('修改')">修改</van-button>
                      <van-button v-if="item.title == '家庭成员信息'" type="info" size="small" style="position: absolute; top: 6px; left: 186px" @click="handleAddusers('删除')">删除</van-button>
                    </van-collapse>
                  </div>
                </van-tab>
                <van-tab title="现宅基地">
                  <van-form validate-first style="margin-left: 0px">
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <span style="color: #ff0000">*</span>
                      <van-field readonly clickable name="picker" v-model="IF_WFH_WG" label="是否属于无房户或危房改造拆除重建" placeholder="请关联危改业务" @click="ENUM.IF_WFH_WG = false" />
                      <van-popup v-model="ENUM.IF_WFH_WG" position="bottom" get-container="#popup">
                        <van-picker show-toolbar :columns="ENUM.IF_WFH_WGArr" value-key="DICNAME" @confirm="onConfirm33" @cancel="ENUM.IF_WFH_WG = false" />
                      </van-popup>
                    </div>
                    <van-button style="margin-left: 20px" type="info" size="small" @click="handleGuanlian('关联')">关联危改业务</van-button>
                    <van-button type="info" size="small" @click="handleGuanlian('查看')">查看</van-button>
                    <div v-show="isShow10" style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <span style="color: #ff0000">*</span>
                      <van-field
                        readonly
                        clickable
                        name="picker"
                        :value="JFData.IF_JXBL | inUseName(ENUM.SFSJSLYJARR)"
                        label="是否继续办理"
                        placeholder="请填写是或者否"
                        @click="ENUM.IF_JXBL = true" />
                      <van-popup v-model="ENUM.IF_JXBL" position="bottom" get-container="#popup">
                        <van-picker show-toolbar :columns="ENUM.SFSJSLYJARR" value-key="DICNAME" @confirm="onConfirm44" @cancel="ENUM.IF_JXBL = false" />
                      </van-popup>
                    </div>
                    <div v-show="isShow10" style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <span style="color: #ff0000">*</span>
                      <van-field :readonly="isread" v-model="JFData.IF_JXBL_SM" label="说明" placeholder="请填写说明" />
                    </div>
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <span style="color: #ff0000">*</span>
                      <van-field :readonly="isread" type="number" v-model="JFData.ZJDMJ" label="宅基地面积(㎡)" placeholder="请填写宅基地面积" />
                    </div>
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <span style="color: #ff0000">*</span>
                      <van-field :readonly="isread" type="number" v-model="JFData.JZMJ" label="建筑面积(㎡)" placeholder="请填写建筑面积" />
                    </div>
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <span style="color: #ff0000">*</span>
                      <van-field :readonly="isread" v-model="JFData.QSZSH" label="权属证书号" placeholder="请填写权属证书号" />
                    </div>
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <span style="color: #ff0000">*</span>
                      <van-field readonly clickable name="picker" @click="ENUM.SF2 = true" v-model="XZJDCZQK" label="现宅基地处置情况" placeholder="请填写现宅基地处置情况" />
                      <van-popup v-model="ENUM.SF2" position="bottom" get-container="#popup">
                        <van-picker show-toolbar :columns="ENUM.SFARR" value-key="DICNAME" @confirm="onConfirm6" @cancel="ENUM.SF2 = false" />
                      </van-popup>
                    </div>
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <span style="color: #ff0000">*</span>

                      <van-field readonly clickable name="picker" v-model="F_IFSILINGYIJIAN" label="是否涉及四邻意见" placeholder="请填写是或者否" @click="ENUM.SFSJSLYJ = true" />
                      <van-popup v-model="ENUM.SFSJSLYJ" position="bottom" get-container="#popup">
                        <van-picker show-toolbar :columns="ENUM.SFSJSLYJARR" value-key="DICNAME" @confirm="onConfirm13" @cancel="ENUM.SFSJSLYJ = false" />
                      </van-popup>
                    </div>

                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <span style="color: #ff0000">*</span>
                      <van-field readonly clickable name="picker"  v-model="XZJDCZQK_JS" label="间数" placeholder="请选择间数" @click="ENUM.XZJDCZQKS = true" />
                      <van-popup v-model="ENUM.XZJDCZQKS" position="bottom" get-container="#popup">
                        <van-picker show-toolbar :columns="ENUM.XZJDCZQKARR" value-key="DICNAME" @confirm="onConfirm30" @cancel="ENUM.XZJDCZQKS = false" />
                      </van-popup>
                    </div>

                    <div  style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <span style="color: #ff0000">*</span>
                      <van-field type="number" :readonly="isread" v-model="JFData.XZJDCZQK_MJ" label="面积(㎡)" placeholder="请填写面积" />
                    </div>

                    <div v-if="this.XZJDCZQK == '其他'" style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <span style="color: #ff0000">*</span>
                      <van-field :readonly="isread" v-model="JFData.XZJDCZQK_QT" label="其他" placeholder="请填写其他" />
                    </div>
                    <div v-if="this.XZJDCZQK == '保留'" style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <span style="color: #ff0000">*</span>
                      <van-field    :readonly="isread" v-model="JFData.XZJDCZQK_BL" label="保留面积(㎡)" placeholder="请填写保留面积" />
                    </div>
                  </van-form>
                </van-tab>
                <van-tab title="拟申请">
                  <van-form validate-first style="margin-left: 0px">
                    <!-- <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <span style="color: #ff0000">*</span>
                      <van-field readonly clickable name="picker" @click="ENUM.SPLX = true" v-model="SPLX" label="审批类型" placeholder="请填写审批类型" />
                      <van-popup v-model="ENUM.SPLX" position="bottom" get-container="#popup">
                        <van-picker show-toolbar :columns="ENUM.SPLXArr" value-key="DICNAME" @confirm="onConfirm66" @cancel="ENUM.SPLX = false" />
                      </van-popup>
                    </div> -->
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <span style="color: #ff0000">*</span>
                      <van-field readonly clickable name="picker" @click="ENUM.NYD = true" v-model="buildtype" label="建房类型" placeholder="请填写建房类型" />
                      <van-popup v-model="ENUM.NYD" position="bottom" get-container="#popup">
                        <van-picker show-toolbar :columns="ENUM.NYDARR" value-key="DICNAME" @confirm="onConfirm7" @cancel="ENUM.NYD = false" />
                      </van-popup>
                    </div>
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <span style="color: #ff0000">*</span>
                      <van-field readonly clickable name="picker" @click="ENUM.JFLX = true" v-model="landtype" label="地类" placeholder="请填写地类" />
                      <van-popup v-model="ENUM.JFLX" position="bottom" get-container="#popup">
                        <van-picker show-toolbar :columns="ENUM.JFLXARR" value-key="DICNAME" @confirm="onConfirm8" @cancel="ENUM.JFLX = false" />
                      </van-popup>
                    </div>
                    <select-picker
                      v-if="isShow3"
                      :isTime="false"
                      :labels="'农用地'"
                      :selectValue="YDLX_NYD"
                      :values="'DICNAME'"
                      :DICID="'DICID'"
                      placeholder="请选择农用地"
                      :columns="ENUM.NYDARR"
                      @getMessage="setValue"></select-picker>
                    <div v-if="isShow2" style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <span style="color: #ff0000">*</span>
                      <van-field clickable name="picker" v-model="JFData.YDLX_NYD_QT" label="其他" placeholder="请填写内容" />
                    </div>
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <!-- <span style="color: #ff0000">*</span> -->
                      <van-field :readonly="isread" type="number" v-model="JFData.HOMESTEADAREA" label="宅基地面积(㎡)" placeholder="请填写宅基地面积" />
                    </div>
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <!-- <span style="color: #ff0000">*</span> -->
                      <van-field :readonly="isread" type="number" v-model="JFData.BUILDAREA" label="房基占地面积(㎡)" placeholder="请填写房基占地面积" />
                    </div>
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <!-- <span style="color: #ff0000">*</span> -->
                      <!-- <van-field :readonly="isread" v-model="JFData.sex" label="性别" placeholder="请填写性别" /> -->
                      <van-field :readonly="isread" type="number" v-model="JFData.HOUSEFLOORAREA" label="住房建筑面积(㎡)" placeholder="请填写住房建筑面积" />
                    </div>
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <!-- <span style="color: #ff0000">*</span> -->
                      <van-field :readonly="isread" type="number" v-model="JFData.WDGD" label="屋顶高度(m)" placeholder="请填写屋顶高度" />
                    </div>
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <!-- <span style="color: #ff0000">*</span> -->
                      <van-field :readonly="isread" type="number" v-model="JFData.BUILDHEIGHT" label="檐口高度(m)" placeholder="请填写檐口高度" />
                    </div>

                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <!-- <span style="color: #ff0000">*</span> -->
                      <van-field :readonly="isread" type="number" v-model="JFData.DPGD" label="地坪高度(m)" placeholder="请填写地坪高度" />
                    </div>

                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <!-- <span style="color: #ff0000">*</span> -->
                      <van-field :readonly="isread" type="number" v-model="JFData.JZZGD" label="建筑总高度(m)" placeholder="请填写建筑总高度" />
                    </div>


                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <span style="color: #ff0000">*</span>
                      <van-field readonly clickable name="picker" v-model="buildstorey" label="建筑层数" placeholder="请填写建筑层数" @click="ENUM.YDLX = true" />
                      <van-popup v-model="ENUM.YDLX" position="bottom" get-container="#popup">
                        <van-picker show-toolbar :columns="ENUM.YDLXARR" value-key="DICNAME" @confirm="onConfirm9" @cancel="ENUM.YDLX = false" />
                      </van-popup>
                    </div>

                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <!-- <span style="color: #ff0000">*</span> -->
                      <van-field :readonly="isread" type="number" v-model="JFData.LC_QT" label="楼层_其他" placeholder="楼层_其他" />
                    </div>
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <span style="color: #ff0000">*</span>
                      <van-field readonly clickable name="picker" v-model="sewagedisposal" label="污水处理方式" placeholder="请填写污水处理方式" @click="ENUM.JGLX = true" />
                      <van-popup v-model="ENUM.JGLX" position="bottom" get-container="#popup">
                        <van-picker show-toolbar :columns="ENUM.JGLXARR" value-key="DICNAME" @confirm="onConfirm10" @cancel="ENUM.JGLX = false" />
                      </van-popup>
                    </div>
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <span style="color: #ff0000">*</span>
                      <van-field readonly clickable name="picker" @click="ENUM.WSCLFS = true" v-model="structuretype" label="建筑结构" placeholder="请填写建筑结构" />
                      <van-popup v-model="ENUM.WSCLFS" position="bottom" get-container="#popup">
                        <van-picker show-toolbar :columns="ENUM.WSCLFSARR" value-key="DICNAME" @confirm="onConfirm11" @cancel="ENUM.WSCLFS = false" />
                      </van-popup>
                    </div>
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <!-- <span style="color: #ff0000">*</span> -->
                      <van-field :readonly="isread" v-model="JFData.SUNSHINEDIST" label="日照间距" placeholder="请填写日照间距" />
                    </div>
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <!-- <span style="color: #ff0000">*</span> -->
                      <van-field :readonly="isread" v-model="JFData.WALLCOLOR" label="外墙色彩" placeholder="请填写外墙色彩" />
                    </div>
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <!-- <span style="color: #ff0000">*</span> -->
                      <van-field :readonly="isread" v-model="JFData.DZ" label="东至" placeholder="请填写东至" />
                    </div>
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <!-- <span style="color: #ff0000">*</span> -->
                      <van-field :readonly="isread" v-model="JFData.NZ" label="南至" placeholder="请填写南至" />
                    </div>
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <!-- <span style="color: #ff0000">*</span> -->
                      <van-field :readonly="isread" v-model="JFData.XZ" label="西至" placeholder="请填写西至" />
                    </div>
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <!-- <span style="color: #ff0000">*</span> -->
                      <van-field :readonly="isread" v-model="JFData.BZ" label="北至" placeholder="请填写北至" />
                    </div>
                    <div v-if="isShow4" style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <span style="color: #ff0000">*</span>
                      <van-field readonly clickable name="picker" @click="ENUM.TKBM = true" v-model="adjacentopinion" label="涉及相邻关系的，是否已征得相邻权利人同意" placeholder="请填写是否" />
                      <van-popup v-model="ENUM.TKBM" position="bottom" get-container="#popup">
                        <van-picker show-toolbar :columns="ENUM.TKBMARR" value-key="DICNAME" @confirm="onConfirm12" @cancel="ENUM.TKBM = false" />
                      </van-popup>
                    </div>
                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <span style="color: #ff0000">*</span>
                      <van-field :readonly="isread" v-model="JFData.CONSTRUCITONADDRESS" label="地址" placeholder="请填写地址" />
                    </div>

                        <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <span style="color: #ff0000">*</span>
                      <van-field readonly clickable name="picker" @click="ENUM.SPLX = true" v-model="SPLX" label="审批类型" placeholder="请填写审批类型" />
                      <van-popup v-model="ENUM.SPLX" position="bottom" get-container="#popup">
                        <van-picker show-toolbar :columns="ENUM.SPLXArr" value-key="DICNAME" @confirm="onConfirm66" @cancel="ENUM.SPLX = false" />
                      </van-popup>
                    </div>


                    <div style="display: flex; justify-content: center; align-items: center; color: black; border-bottom: 1px solid #d2d2d2">
                      <!-- <span style="color: #ff0000">*</span> -->
                      <van-field readonly clickable name="picker" @click="ENUM.TKBMIF_GZS = true" v-model="IF_GZS" label="是否需要一次性告知书" placeholder="请填写是否" />
                      <van-popup v-model="ENUM.TKBMIF_GZS" position="bottom" get-container="#popup">
                        <van-picker show-toolbar :columns="ENUM.TKBMARR11" value-key="DICNAME" @confirm="onConfirm133" @cancel="ENUM.TKBMIF_GZS = false" />
                      </van-popup>
                    </div>
                  </van-form>
                  <div style="position: relative" v-show="JFData.IF_GZS == '5'">
                    <p class="subTitle"><span class="line"></span> <span style="color: #3f8ffc">一次性告知书</span></p>
                    <el-table size="small" :data="tableData11" border style="width: 100%" @selection-change="handleSelectionChange111">
                      <el-table-column type="selection" width="30"> </el-table-column>
                      <el-table-column v-for="(it, in1) in tablecoums11" :key="in1" :prop="it.prop" :label="it.name" align="center"> </el-table-column>
                    </el-table>
                    <van-button type="info" size="small" style="position: absolute; top: 10px; left: 254px" @click="handleAddusers11('添加')">添加</van-button>
                    <van-button type="info" size="small" style="position: absolute; top: 10px; left: 304px" @click="handleAddusers11('删除')">删除</van-button>
                  </div>
                </van-tab>
                <van-tab title="附件">
                  <!-- <ul v-for="(items, index) in FJData" :key="index">
                      <div style="line-height: 30px; border-bottom: 1px solid #d2d2d2; font-size: 17px">
                        <li style="font-weight: 600">
                          {{ items.title }}
                        </li>
                        <li style="font-size: 14px">
                          文件：<span style="color: #3f8ffc">{{ items.FileName }}</span>
                        </li>
                        <el-button @click="handleLJD(items)" style="float: right; margin-top: -50px"
                          size="mini">链接下载</el-button>
                        <van-uploader @click-upload="getList(items)" @click-preview="lookFile" :after-read="afterRead"
                          :before-delete="delectFile" v-model="items.fileList"
                          accept=".jpg,.gif,.png,.jpeg,.txt,.pdf,.doc,.docx,.xls,.xlsx" multiple>
                        </van-uploader>
                      </div>
                    </ul> -->
                  <upLoad :rowData="rowData" :FJData="FJData1" :isReadOnly="false" :SHITUID="'98bcf528966e48ce896a8b3fd02d45d5'" :UpLoadID="'7a3fc061c866434b8475d3775c9ddcea'" />
                </van-tab>
                <van-tab title="其他">
                  <div v-for="(item, index) in file" :key="index" style="margin-left: 0px">
                    <p class="title">
                      <!-- <span style="color: #ff0000">*</span> -->
                      {{ item.name }}
                    </p>
                    <van-uploader
                      @click-upload="getList(item)"
                      @click-preview="lookFile"
                      :after-read="afterRead"
                      :before-delete="delectFile"
                      v-model="item.fileList"
                      accept=".jpg,.gif,.png,.jpeg,.txt,.pdf,.doc,.docx,.xls,.xlsx"
                      multiple />
                  </div>
                </van-tab>
              </van-tabs>
            </div>
            <div>
              <p class="subTitle"><span class="line"></span> <span style="color: #3f8ffc">资格审核意见</span></p>
              <p style="margin-top: 4px; font-size: 16px"><span style="color: #ff0000">*</span>资格审核意见</p>
              <van-field v-model="JFData.ZGSHYJ" type="textarea" label :border="false" disable-default-padding style="background-color: #e4e4e4; margin-top: 8px; min-height: 140px" />
              <p style="text-align: right; line-height: 20px">
                <span>{{ JFData.CWSHR }}</span> <span>{{ JFData.ZGSHR }}</span>
              </p>
            </div>
          </div>
          <div class="footer">
            <van-button style="margin-right: 10px" size="small" type="info" @click="submitTable">提交</van-button>
            <van-button style="margin-right: 10px" size="small" type="info" @click="SaveTableDatas">保存</van-button>
            <van-button style="margin-right: 10px" size="small" type="info" @click="blackTable">退回</van-button>
          </div>
          <van-dialog v-model="isShow" :title="dialogTitle" show-cancel-button @confirm="saveBtn" @cancel="cancelBtn">
            <van-form validate-first>
              <div style="padding: 10px">
                <div style="display: flex; justify-content: center; align-items: center; border-bottom: 1px solid #d2d2d2; color: black">
                  <!-- <span style="color: #ff0000">*</span> -->
                  <van-field v-model="tableFrom[0].XM" :required="true" label="姓名" placeholder="请输入姓名" />
                </div>
                <div style="display: flex; justify-content: center; align-items: center; border-bottom: 1px solid #d2d2d2; color: black">
                  <!-- <span style="color: #ff0000">*</span> -->
                  <van-field name="validator" v-model="tableFrom[0].NL" :required="true" label="年龄" placeholder="请输入年龄" />
                </div>
                <div style="display: flex; justify-content: center; align-items: center; border-bottom: 1px solid #d2d2d2; color: black">
                  <!-- <span style="color: #ff0000">*</span> -->
                  <!-- <van-field name="validator" v-model="tableFrom.YHZGX" label="与户主关系" placeholder /> -->
                  <van-field
                    readonly
                    clickable
                    name="picker"
                    @click="ENUM.YHZGX = true"
                    :value="tableFrom[0].YHZGX | inUseName(ENUM.YHZGXARR)"
                    :required="true"
                    label="与户主关系"
                    placeholder="请选择与户主关系" />
                  <van-popup v-model="ENUM.YHZGX" position="bottom" get-container="#popup">
                    <van-picker show-toolbar :columns="ENUM.YHZGXARR" value-key="DICNAME" @confirm="onConfirm14" @cancel="ENUM.YHZGX = false" />
                  </van-popup>
                </div>
                <div style="display: flex; justify-content: center; align-items: center; border-bottom: 1px solid #d2d2d2; color: black">
                  <!-- <span style="color: #ff0000">*</span> -->
                  <!-- <van-field name="validator" v-model="tableFrom.YHZGX" label="与户主关系" placeholder /> -->
                  <van-field readonly clickable name="picker" @click="ENUM.XB1 = true" :value="tableFrom[0].SEX | inUseName(ENUM.XBARR)" :required="true" label="性别" placeholder="请选择性别" />
                  <van-popup v-model="ENUM.XB1" position="bottom" get-container="#popup">
                    <van-picker show-toolbar :columns="ENUM.XBARR" value-key="DICNAME" @confirm="onConfirm5" @cancel="ENUM.XB1 = false" />
                  </van-popup>
                </div>
                <div style="display: flex; justify-content: center; align-items: center; border-bottom: 1px solid #d2d2d2; color: black">
                  <!-- <span style="color: #ff0000">*</span> -->
                  <!-- <van-field name="validator" v-model="tableFrom.YHZGX" label="与户主关系" placeholder /> -->
                  <van-field readonly clickable name="picker" @click="ENUM.CJT = true" :value="tableFrom[0].IFCJTGD | inUseName(ENUM.CJTARR)" label="是否村集体股东" placeholder="选择是否村集体股东" />
                  <van-popup v-model="ENUM.CJT" position="bottom" get-container="#popup">
                    <van-picker show-toolbar :columns="ENUM.CJTARR" value-key="DICNAME" @confirm="onConfirm15" @cancel="ENUM.CJT = false" />
                  </van-popup>
                </div>
                <div style="display: flex; justify-content: center; align-items: center; border-bottom: 1px solid #d2d2d2; color: black">
                  <!-- <span style="color: #ff0000">*</span> -->
                  <!-- <van-field name="validator" v-model="tableFrom.YHZGX" label="与户主关系" placeholder /> -->
                  <van-field readonly clickable name="picker" @click="ENUM.IFBDC = true" :value="tableFrom[0].IFBDC | inUseName(ENUM.IFBDCARR)" label="是否有不动产" placeholder="请选择是否有不动产" />
                  <van-popup v-model="ENUM.IFBDC" position="bottom" get-container="#popup">
                    <van-picker show-toolbar :columns="ENUM.IFBDCARR" value-key="DICNAME" @confirm="onConfirm16" @cancel="ENUM.IFBDC = false" />
                  </van-popup>
                </div>
                <div style="display: flex; justify-content: center; align-items: center; border-bottom: 1px solid #d2d2d2; color: black">
                  <!-- <span style="color: #ff0000">*</span> -->
                  <!-- <van-field name="validator" v-model="tableFrom.YHZGX" label="与户主关系" placeholder /> -->
                  <van-field
                    readonly
                    clickable
                    name="picker"
                    @click="ENUM.IFJGSYDW = true"
                    :value="tableFrom[0].IFJGSYDW | inUseName(ENUM.IFJGSYDWARR)"
                    label="是否机关事业单位"
                    placeholder="请选择是否机关事业单位" />
                  <van-popup v-model="ENUM.IFJGSYDW" position="bottom" get-container="#popup">
                    <van-picker show-toolbar :columns="ENUM.IFJGSYDWARR" value-key="DICNAME" @confirm="onConfirm17" @cancel="ENUM.IFJGSYDW = false" />
                  </van-popup>
                </div>
                <div style="display: flex; justify-content: center; align-items: center; border-bottom: 1px solid #d2d2d2; color: black">
                  <!-- <span style="color: #ff0000">*</span> -->
                  <!-- <van-field name="validator" v-model="tableFrom.YHZGX" label="与户主关系" placeholder /> -->
                  <van-field
                    readonly
                    clickable
                    name="picker"
                    :value="tableFrom[0].HYZK | inUseName(ENUM.HYZKARR)"
                    :required="true"
                    @click="ENUM.HYZK = true"
                    label="婚姻状况"
                    placeholder="请选择婚姻状况" />
                  <van-popup v-model="ENUM.HYZK" position="bottom" get-container="#popup">
                    <van-picker show-toolbar :columns="ENUM.HYZKARR" value-key="DICNAME" @confirm="onConfirm18" @cancel="ENUM.HYZK = false" />
                  </van-popup>
                </div>
                <div style="display: flex; justify-content: center; align-items: center; border-bottom: 1px solid #d2d2d2; color: black">
                  <!-- <span style="color: #ff0000">*</span> -->
                  <van-field name="validator" :rules="[{ validator, message: '请输入正确身份证号码' }]" :required="true" v-model="tableFrom[0].SFZ" label="身份证号" placeholder="请输入身份证号" />
                </div>
                <div style="display: flex; justify-content: center; align-items: center; border-bottom: 1px solid #d2d2d2; color: black">
                  <!-- <span style="color: #ff0000">*</span> -->
                  <van-field name="validator" v-model="tableFrom[0].HKSZD" label="户口所在地" placeholder="请输入户口所在地" />
                </div>
                <div style="display: flex; justify-content: center; align-items: center; border-bottom: 1px solid #d2d2d2; color: black">
                  <!-- <span style="color: #ff0000">*</span> -->
                  <van-field name="validator" v-model="tableFrom[0].BDCBH" label="不动产编号" placeholder="请输入不动产编号" />
                </div>
                <div style="display: flex; justify-content: center; align-items: center; border-bottom: 1px solid #d2d2d2; color: black">
                  <!-- <span style="color: #ff0000">*</span> -->
                  <van-field readonly clickable name="picker" @click="showPickerq = true" v-model="tableFrom[0].SWSJ" label="死亡时间" placeholder="请选择死亡时间" />
                  <van-popup v-model="showPickerq" position="bottom">
                    <van-datetime-picker v-model="currentDate" type="date" title="选择年月日" @cancel="showPickerq = false" @confirm="onConfirm19" :min-date="minDate" :max-date="maxDate"
                  /></van-popup>
                </div>
                <div style="display: flex; justify-content: center; align-items: center; border-bottom: 1px solid #d2d2d2; color: black">
                  <!-- <span style="color: #ff0000">*</span> -->
                  <van-field readonly clickable name="picker" @click="showPickerq1 = true" v-model="tableFrom[0].HHSJ" label="火化时间" placeholder="请选择火化时间" />
                  <van-popup v-model="showPickerq1" position="bottom">
                    <van-datetime-picker v-model="currentDate" type="date" title="选择年月日" @cancel="showPickerq1 = false" @confirm="onConfirm20" :min-date="minDate" :max-date="maxDate"
                  /></van-popup>
                </div>
              </div>
            </van-form>
          </van-dialog>
          <van-action-sheet class="content1" v-model="isshowUsers" title="选择户主信息">
            <div class="content">
              <el-table :header-cell-style="{ color: '#000' }" :data="tableData1" border size="mini" style="width: 100%" @selection-change="handleSelectionChange1">
                <el-table-column type="selection" width="40"></el-table-column>
                <el-table-column type="index" label="序号" align="center" width="45"></el-table-column>
                <el-table-column width="70" prop="HOUSEAPPLICANT" align="center" label="姓名"></el-table-column>
                <el-table-column width="70" prop="AGE" align="center" label="年龄"></el-table-column>
                <el-table-column min-width="145px" prop="YHZGX" align="center" label="与户主关系">
                  <template slot-scope="scope">
                    {{
                      scope.row.YHZGX == '156'
                        ? '户主'
                        : scope.row.YHZGX == '267'
                        ? '孙女'
                        : scope.row.YHZGX == '28'
                        ? '夫妻'
                        : scope.row.YHZGX == '30'
                        ? '长子'
                        : scope.row.YHZGX == '166'
                        ? '次子'
                        : scope.row.YHZGX == '167'
                        ? '孙子'
                        : scope.row.YHZGX == '168'
                        ? '次女'
                        : scope.row.YHZGX == '169'
                        ? '长女'
                        : '其他亲属'
                    }}
                  </template>
                </el-table-column>
                <el-table-column min-width="145px" prop="SEX" align="center" label="性别">
                  <template slot-scope="scope">
                    {{ scope.row.SEX == '3' ? '男' : '女' }}
                  </template>
                </el-table-column>
                <el-table-column min-width="145px" prop="CERTIFICATECODE" align="center" label="身份证号"></el-table-column>
                <!-- <el-table-column prop="sexx" align="center" label="性别"> -->
                <!-- </el-table-column> -->
                <!-- <el-table-column prop="JTZZ" align="center" label="家庭住址"> -->
                <!-- </el-table-column> -->
              </el-table>
              <van-button type="info" style="position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%)" size="small" @click="closeTable"> 确认选择 </van-button>
            </div>
          </van-action-sheet>
          <van-popup v-model="shoulm1">
            <div class="con_box">
              <h3>{{ text.title }}</h3>
              <p>{{ text.message }}</p>
              <div class="btnv">
                <span @click="handleClose()" v-if="text.btn.cancelText">
                  {{ text.btn.cancelText }}
                </span>
                <span @click="handleOk()" v-if="text.btn.okText">
                  {{ text.btn.okText }}
                </span>
              </div>
            </div>
          </van-popup>
          <van-action-sheet class="content1" v-model="shoulm2" title="退回意见">
            <div class="content">
              <div style="display: flex; justify-content: center; align-items: center; border-bottom: 1px solid #d2d2d2; color: black">
                <span style="color: #ff0000">*</span>
                <!-- <van-field name="validator" v-model="tableFrom.YHZGX" label="与户主关系" placeholder /> -->
                <van-field readonly clickable name="picker" @click="ENUM.DHLY = true" v-model="DHLY" label="打回理由" placeholder="" />
                <van-popup v-model="ENUM.DHLY" position="bottom" get-container="#popup">
                  <van-picker show-toolbar :columns="ENUM.DHLYARR" value-key="DICNAME" @confirm="onConfirm21" @cancel="ENUM.DHLY = false" />
                </van-popup>
              </div>
              <div style="">
                <div style="display: flex; justify-content: center; align-items: center; border-bottom: 1px solid #d2d2d2; color: black">
                  <span style="color: #ff0000">*</span>
                  <van-field v-model="DHLY1.OPINION" label="打回意见" placeholder />
                </div>
              </div>
              <div style="">
                <div style="display: flex; justify-content: center; align-items: center; border-bottom: 1px solid #d2d2d2; color: black">
                  <span style="color: #ff0000">*</span>
                  <van-field v-model="JFData.CWSHR" label="审批人员" placeholder />
                </div>
              </div>
              <div style="">
                <div style="display: flex; justify-content: center; align-items: center; border-bottom: 1px solid #d2d2d2; color: black">
                  <span style="color: #ff0000">*</span>
                  <van-field v-model="JFData.ZGSHR" label="审批日期" placeholder />
                </div>
              </div>
              <van-button type="info" style="position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%)" size="small" @click="closeTable1"> 确认 </van-button>
            </div>
          </van-action-sheet>
        </div>
      </van-tab>
      <van-tab title="过程信息">
        <FileData :ROW_GUID="rowData.ROW_GUID" :rowData="rowData"></FileData>
      </van-tab>
    </van-tabs>
    <div class="action">
      <van-popup v-model="show20" title="新增" round position="bottom" :safe-area-inset-bottom="true" :style="{ height: '70%' }">
        <div class="title">关联危改业务</div>
        <div class="top-search">
          <van-search v-model="value" placeholder="请输入搜索关键词" @search="onSearch" />
        </div>
        <viewScroll :weiGaiData="weiGaiData" ref="viewScroll" />
        <div style="position: fixed; bottom: 0" @click="handleAddData">
          <van-button type="info" style="width: 100vw">确定</van-button>
        </div>
      </van-popup>
    </div>
    <van-dialog v-model="isShow111" :title="'新增'" show-cancel-button @confirm="saveBtn11" @cancel="cancelBtn11">
      <van-form validate-first>
        <div style="padding: 10px">
          <div style="display: flex; justify-content: center; align-items: center; border-bottom: 1px solid #d2d2d2; color: black">
            <van-field v-model="formData19.CLMC" :required="true" label="材料名称" placeholder="请输入材料名称" />
          </div>
          <div style="display: flex; justify-content: center; align-items: center; border-bottom: 1px solid #d2d2d2; color: black">
            <van-field name="validator" v-model="formData19.YJFYJ" :required="true" label="原件/复印件" placeholder="请输入原件/复印件" />
          </div>
          <div style="display: flex; justify-content: center; align-items: center; border-bottom: 1px solid #d2d2d2; color: black">
            <van-field name="validator" v-model="formData19.FS" :required="true" label="份数" placeholder="请输入份数" />
          </div>
          <div style="display: flex; justify-content: center; align-items: center; border-bottom: 1px solid #d2d2d2; color: black">
            <van-field name="validator" v-model="formData19.BZ" :required="true" label="备注" placeholder="请输入备注" />
          </div>
        </div>
      </van-form>
    </van-dialog>
  </div>
</template>
<script>
import {
  QuerySignCallback,
  dataServerOpenDataView,
  FileServerUpload,
  DelectFile,
  housebigDataForUser,
  dataTransFile,
  dataTransFilePreview,
  FileServerProxy,
  houseApplyDelete,
  getApplyPersonInfoByIdCard
} from '@/utils/api'
import viewScroll from './viewScroll.vue'
import { v4 as uuidv4 } from 'uuid'
import { GSA_Add, GSA_Search } from '@/common/commonApi'
import { GJDBFunction2 } from '@/utils/queryData'
import { textData } from '../../../utils/api'
import { idCard } from '../../../utils/idCard'
import selectPicker from '../../../utils/selectPicker'
import upLoad from '../../../utils/upLoad'
import FileData from '@/components/activity/FileData'
export default {
  filters: {
    inUseName: function (msg, data) {
      let name = ''
      data.forEach((item) => {
        if (item.DICID == msg) {
          name = item.DICNAME
        }
      })
      return name
    }
  },
  data() {
    return {
      //建房信息存储
      value: '',
      show20: false,
      tableData11: [],
      weiGaiData: [],
      multipleSelection111: [],
      formData19: {
        CLMC: '',
        YJFYJ: '',
        FS: '',
        BZ: ''
      },
      tablecoums11: [
        {
          name: '材料名称',
          prop: 'CLMC'
        },
        {
          name: '原件/复印件',
          prop: 'YJFYJ'
        },
        {
          name: '份数',
          prop: 'FS'
        },
        {
          name: '备注',
          prop: 'BZ'
        }
      ],
      isShow111: false,
      text4: {
        title: '提示',
        message: '是否确认删除?',
        btn: {
          okText: '确定',
          cancelText: '取消'
        }
      },
      showSelectTime: false,
      showIS: false,
      file: [
        {
          name: '身份证正面照片（浙里办）',
          groupGuid: '19902700-f952-4561-a338-5590056dab65',
          fileList: []
        },
        {
          name: '身份证反面照片（浙里办）',
          groupGuid: 'd26fd8fd-0d8a-46ec-af9f-2341ba78fb58',
          fileList: []
        },
        {
          name: '农村宅基地使用承诺书',
          groupGuid: '188027de-4ba9-4218-bcb1-03bf764293fa',
          fileList: []
        },
        {
          name: '代办人手持照片',
          groupGuid: '85f99afa-f0c4-4064-b7a3-84eb417bc43a',
          fileList: []
        }
      ],
      shoulm1: false,
      text: {
        title: '温馨提示',
        message: '该案卷将终止审批并退件到农户，是否继续？',
        btn: {
          okText: '确定',
          cancelText: '取消'
        }
      },
      IF_GZS: '',
      DHLY1: {
        DHLY: '',
        OPINION: '',
        SIGNERNAME: '',
        SIGNDATE: '',
        TODATA_GUID: ''
      },
      DHLY: '',
      shoulm2: false,
      showPickerq: false,
      showPickerq1: false,
      currentDate: new Date(),
      minDate: new Date(1970, 0, 1),
      maxDate: new Date(2089, 12, 1),
      isShow: false,
      isshowUsers: false,
      ShowData: true,
      YDLX_NYD: '',
      multipleSelection1: [],
      IFCJTGD: '',
      IFBDC: '',
      tableData1: [{ HOUSEAPPLICANT: '111', CERTIFICATECODE: '222', YHZGX: '333', SFZH: '333', NL: '', HKSZD: '111', SEX: '3' }],
      dialogTitle: '',
      tableFrom: [
        {
          XM: '',
          SFZ: '',
          NL: '',
          SFZH: '',
          HKSZD: '',
          YHZGX: '',
          SEX: '',
          IFCJTGD: '',
          IFCJTGD: '',
          IFBDC: '',
          BDCBH: '',
          IFJGSYDW: '',
          SWSJ: '',
          HHSJ: '',
          HYZK: ''
        }
      ],
      //用于必填项控制
      newObj: {
        ZJDMJ: '',
        JZMJ: '',
        XZJDCZQK: '',
        LANDTYPE: '',
        BUILDSTOREY: '',
        SEWAGEDISPOSAL: '',
        STRUCTURETYPE: '',
        ZGSHYJ: '',
        QSZSH: '',
        F_IFSILINGYIJIAN: '',
        XZJDCZQK_JS:"",
        // SPLX: ''
      },
      SPLX: '',
      isShow2: false, //用于是否展示其他内容输入
      isShow3: false, //用于是否展示农用地
      JFData: {
        PKID: '',
        TASK_CAUTIONLIGHT: '',
        IF_WFH_WG: '',
        ROW_GUID: '',
        WDGD: '',
        IF_JXBL: '',
        CERTIFICATECODE: '',
        HOUSEAREA: '',
        HOUSETYPE: '',
        IF_JXBL_SM: '',
        HOUSEAPPLICANT: '',
        APPLYPHONE: '',
        DPGD:"",
        JZZGD:"",
        LC_QT:'',
        APPLYTYPE: '',
        APPLYTIME: '',
        BUILDTYPE: "",
        BUILDREASON: '',
        LANDTYPE: '',
        STRUCTURETYPE: '',
        ADDRESS: '',
        HOMESTEADAREA: '',
        BUILDAREA: '',
        BUILDSTOREY: '',
        BUILDHEIGHT: '',
        HOUSEFLOORAREA: '',
        APPLYSTATE: '',
        CREATETIME: '',
        VERSION: '',
        HOUSEID: '',
        XZJDCZQK_MJ:'',
        PERSONNAME: '',
        IDCARD: '',
        PERMANENTADDR: '',
        HOLDERISCANCEL: '',
        ISDEATH: '',
        ISSUPPORT: '',
        AGE: '',
        ISDISEASE: '',
        ISSHAREHOLDER: '',
        OFFICEWORK: '',
        ADJACENTOPINION: '',
        WALLCOLOR: '',
        CONSTRUCTIONTYPE: '',
        MASONRYTYPE: '',
        SEWAGEDISPOSAL: '',
        ISHIGHRISKAREA: '',
        CUTSLOPEBUILDING: '',
        PERMANENTADDRESS: '',
        CONSTRUCITONADDRESS: '',
        ORIGINALAREA: '',
        ISDISPOSAL: '',
        DISPOSALMETHOD: '',
        ORICERTIFICATECODE: '',
        MPH: '',
        AREACOVERED: '',
        SEX: '',
        SQLY: '',
        BZ: '',
        DZ: '',
        NZ: '',
        IF_LJF: '',
        XZ: '',
        CUNJIID: '',
        CUNJIMC: '',
        SQFS: '',
        DBRXM: '',
        DBRSFZH: '',
        DBRSJH: '',
        S: '',
        X: '',
        ZGSHYJ: '',
        JSXZ: '',
        ZJDMJ: '',
        JZMJ: '',
        ZJDDH: '',
        QSZSH: '',
        XZJDCZQK: '',
        F_IFSILINGYIJIAN: '',
        XZJDCZQK_JS:"",
        ZJZGSHJG: '',
        YJ: '',
        ZJZGSHYJFZR: '',
        ZJZGSH: '',
        GHYJJBR: '',
        GHJBRJG: '',
        GHFZR: '',
        NFFZR: '',
        NFJBR: '',
        NFJBRJG: '',
        NFFZRJG: '',
        ZFSH: '',
        CS: '',
        TOWN: '',
        NHID: '',
        CWID: '',
        ZJID: '',
        CWMC: '',
        ZJMC: '',
        ZGSJ: '',
        ZGSHR: '',
        ZJZGSHR: '',
        ZJZGSHR2: '',
        ZJZGSHSJ: '',
        ZJZGSHSJ2: '',
        ZJGHSHR: '',
        ZJGHSHR2: '',
        ZJGHSHSJ: '',
        ZJNFSHSJ: '',
        ZJNFSHSJ2: '',
        ZJNFSHR: '',
        ZJNFSHR2: '',
        ZJZFSHR: '',
        ZJZFSHSJ: '',
        CWSHR: '',
        ZJGHSHSJ2: '',
        CUN: '',
        IF_TDZ: '',
        IF_DXS: '',
        WZYY: '',
        SCITY: '',
        XCITY: '',
        VILLAGE: '',
        SSZZ: '',
        HQYJ: '',
        HQR: '',
        HQSJ: '',
        GHFWLX: '',
        TDQX: '',
        FAMILYHOUSEID: '',
        SBZT: '',
        FYSQR: '',
        FYSQRID: '',
        FYSQSJ: '',
        JCYXSQR: '',
        JCYXSQRID: '',
        JCYXSQSJ: '',
        YCLMSQR: '',
        YCLMSQRID: '',
        YCLMSQSJ: '',
        JGYSSQR: '',
        JGYSSQRID: '',
        JGYSSQSJ: '',
        JGYSJZSJ: '',
        SFXSFB: '',
        XZJDCZQK_BL: '',
        XZJDCZQK_QT: '',
        YDLX_NYD: '',
        YDLX_NYD_QT: '',
        NZJDJFDZ: '',
        XCJSGHXKZH: '',
        NCZJDPZSH: '',
        SQR: '',
        DBRID: '',
        GJID: '',
        ISZRSGUID: '',
        SUNSHINEDIST: '',
        JGRQ: '',
        BUILDREASON_QT: '',
        F_IFSFSLYJ: '',
        IFGJ: '',
        OLD_GJ: '',
        BUILDTYPE_DICNAME: '',
        BUILDREASON_DICNAME: '',
        BUILDSTOREY_DICNAME: '',
        IF_LJF_DICNAME: '',
        SQFS_DICNAME: '',
        VILLAGE_CITYNAME: '',
        SSZZ_CITYNAME: '',
        XCITY_CITYNAME: '',
        SCITY_CITYNAME: '',
        CUN_CITYNAME: '',
        TOWN_CITYNAME: '',
        X_CITYNAME: '',
        S_CITYNAME: '',
        YDLX_NYD_DICNAME: '',
        SPLX: '',
        eca_RowState: 'modified'
      },
      HYZK: '',
      //联建人
      ljr: {},
      XB: '',
      //处置情况
      XZJDCZQK: '',
      //建房类型
      buildtype: '',
      //用地类型
      landtype: '',
      //建筑层数
      buildstorey: '',
      //结构类型
      structuretype: '',
      //污水处理
      sewagedisposal: '',
      adjacentopinion: '',
      isShow4: false,
      FJData: [
        {
          title: '农户身份证明材料',
          FileName: '无',
          groupGuid: '0e999f18-bd3d-44a9-bb85-fdc016446fd3',
          fileList: []
        },
        {
          title: '独生子女证明材料(独生子女需提供)',
          FileName: '无',
          groupGuid: '00e64693-e45f-463a-87a3-09b8cf4460b9',
          fileList: []
        },
        {
          title: '地源证明',
          FileName: '无',
          groupGuid: '75dd729a-077a-43ea-8025-5728aa5735dc',
          fileList: []
        },
        {
          title: '婚姻证明材料',
          FileName: '无',
          groupGuid: 'f57644c7-1d39-4c3f-b847-311d86aeedd7',
          fileList: []
        },
        {
          title: '村委会意见照片',
          FileName: '无',
          groupGuid: '8932dee6-9f8b-45d2-acd2-c592da1790e8',
          fileList: []
        },
        {
          title: '四邻意见书',
          FileName: '无',
          groupGuid: 'b2044faf-d609-46c5-995e-d9d2bab0af6d',
          fileList: []
        },
        {
          title: '其他材料',
          FileName: '无',
          groupGuid: '7eb18ff0-5fe4-47ea-a805-68d7731e2609',
          fileList: []
        },
        {
          title: '资格证明材料',
          FileName: '无',
          groupGuid: 'f240ee7d-24d0-4646-801c-41fc533d01bb',
          fileList: []
        }
      ],
      FJData1: [
        {
          title: '农户身份证明材料',
          FileName: [],
          groupGuid: '0e999f18-bd3d-44a9-bb85-fdc016446fd3',
          fileList: []
        },
        {
          title: '独生子女证明材料(独生子女需提供)',
          FileName: [],
          groupGuid: '00e64693-e45f-463a-87a3-09b8cf4460b9',
          fileList: []
        },
        {
          title: '地源证明',
          FileName: [],
          groupGuid: '75dd729a-077a-43ea-8025-5728aa5735dc',
          fileList: []
        },
        {
          title: '婚姻证明材料',
          FileName: [],
          groupGuid: 'f57644c7-1d39-4c3f-b847-311d86aeedd7',
          fileList: []
        },
        {
          title: '村委会意见照片',
          FileName: [],
          groupGuid: '8932dee6-9f8b-45d2-acd2-c592da1790e8',
          fileList: []
        },
        {
          title: '四邻意见书',
          FileName: [],
          groupGuid: 'b2044faf-d609-46c5-995e-d9d2bab0af6d',
          fileList: []
        },
        {
          title: '户口簿复印件',
          FileName: [],
          groupGuid: '0c84fd4b-34b9-4fee-ae44-d6cd67f6da63',
          fileList: []
        },
        {
          title: '原不动产证书原件',
          FileName: [],
          groupGuid: '69cfaab6-f128-4bcb-b1e4-79307020962f',
          fileList: []
        },
        {
          title: '询问记录原件',
          FileName: [],
          groupGuid: 'bf864763-a17f-43ed-9a4c-194c0096d829',
          fileList: []
        },
        {
          title: '代办委托书',
          FileName: [],
          groupGuid: '9578e20c-d263-4136-bce2-925ab9b82650',
          fileList: []
        },
        {
          title: '本人手持身份证照片',
          FileName: [],
          groupGuid: 'cca4fadc-ca2e-44f9-8e24-f0a0c411338c',
          fileList: []
        },
        {
          title: '其他材料',
          FileName: [],
          groupGuid: '7eb18ff0-5fe4-47ea-a805-68d7731e2609',
          fileList: []
        },
        {
          title: '资格证明材料',
          FileName: '无',
          groupGuid: 'f240ee7d-24d0-4646-801c-41fc533d01bb',
          fileList: []
        }
      ],
      activeNames: ['0'],
      isShow10: false,
      isread: false,
      active: 'first',
      active1: 'first',
      sexName: '',
      IFJGSYDW: '',
      ENUM: {
        XB: false,
        SPLX: false,
        SPLXArr: [],
        TKBMARR11: [
          {
            DICID: '5',
            DICNAME: '是'
          },
          {
            DICID: '6',
            DICNAME: '否'
          }
        ],
        XB1: false,
        IFBDC: false,
        HYZK: false,
        DHLY: false,
        DHLYARR: [],
        HYZKARR: [],
        IFBDCARR: [],
        IF_WFH_WG: false,
        IF_WFH_WGArr: [],
        IFJGSYDW: false,
        IFJGSYDWARR: [],
        IF_JXBLArr: [],
        IF_JXBL: false,
        CJT: false,
        XBARR: [],
        CJTARR: [],
        SF: false,
        SF1: false,
        SF2: false,
        //处置情况
        SFARR: [],
        //建房类型
        NYD: false,
        NYDARR: [],
        //地类
        JFLX: false,
        JFLXARR: [],
        //建筑层数
        YDLX: false,
        YDLXARR: [],
        //污水处理
        JGLX: false,
        JGLXARR: [],
        //建筑结构
        WSCLFS: false,
        WSCLFSARR: [],
        //邻居同意否
        TKBM: false,
        TKBMARR: [],
        CHBM: false,
        CHBMARR: [],
        SFSJSLYJ: false,
        XZJDCZQKS:false,
        XZJDCZQKARR:[],
        SFSJSLYJARR: [],
        //与户主关系
        YHZGX: false,
        TKBMIF_GZS: false,
        YHZGXARR: [],
        NYDARR: []
      },
      YHZGX: '',
      IF_WFH_WG: '',
      F_IFSILINGYIJIAN: '',
      XZJDCZQK_JS:"",
      FormXB: '',
      multipleSelection10: [],
      keys: [],
      values: [],
      zgData: [
        {
          title: '户籍家庭成员信息',
          tableData: [],
          tablecoums: [
            {
              name: '姓名',
              prop: 'FAMILYNAME'
            },
            {
              name: '年龄',
              prop: 'FAMILYAGE'
            },
            {
              name: '与户主关系',
              prop: 'HOUSERELATIONSHIP'
            },
            {
              name: '身份证号',
              prop: 'FAMILYIDCARD'
            },
            {
              name: '性别',
              prop: 'FAMILYSEX'
            },
            {
              name: '出生日期',
              prop: 'HOUSEBIRTHDAY'
            },
            {
              name: '是否村集体股东',
              prop: 'IFCJTGD'
            },
            {
              name: '婚姻状况',
              prop: 'HOUSEMERRIAGE'
            },
            {
              name: '是否有不动产',
              prop: 'IFBDC'
            },
            {
              name: '是否机关事业单位',
              prop: 'YHZGX'
            },
            {
              name: '不动产编号',
              prop: 'BDCBH'
            },
            {
              name: '死亡时间',
              prop: 'SWSJ'
            },
            {
              name: '火化时间',
              prop: 'HHSJ'
            }
          ]
        },
        {
          title: '村集体股东信息',
          tableData: [],
          tablecoums: [
            {
              name: '姓名',
              prop: 'name'
            },
            {
              name: '性别',
              prop: 'sex'
            },
            {
              name: '身份证号',
              prop: 'SFZH'
            },
            {
              name: '与户主关系',
              prop: 'houserelationship'
            },
            {
              name: '是否村集体股东',
              prop: 'iscollective'
            },
            {
              name: '村集体股东描述',
              prop: 'collectivediscripe'
            }
          ]
        },
        {
          title: '婚姻信息',
          tableData: [],
          tablecoums: [
            {
              name: '姓名',
              prop: 'FAMILYNAME'
            },
            {
              name: '婚姻状况',
              prop: 'MERRIAGECONDITION'
            },
            {
              name: '婚姻描述',
              prop: 'MERRIAGEDISCRIBE'
            }
          ]
        },
        {
          title: '不动产权信息',
          tableData: [],
          tablecoums: [
            {
              name: '姓名',
              prop: 'FAMILYNAME'
            },
            {
              name: '是否有不动产',
              prop: 'ISREALESTATE'
            },
            {
              name: '不动产编号',
              prop: 'REALESTATENUMBER'
            },
            {
              name: '不动产权证描述',
              prop: 'REALESTATEDISCRIBE'
            }
          ]
        },
        {
          title: '机关事业单位',
          tableData: [],
          tablecoums: [
            {
              name: '姓名',
              prop: 'FAMILYNAME'
            },
            {
              name: '是否机关事业单位',
              prop: 'ISORGANS'
            },
            {
              name: '机关事业单位描述',
              prop: 'ORGANSDISCRIBE'
            }
          ]
        },
        {
          title: '火化信息',
          tableData: [],
          tablecoums: [
            {
              name: '姓名',
              prop: 'XM'
            },
            {
              name: '民族',
              prop: 'MZ'
            },
            {
              name: '地址',
              prop: 'DZ'
            },
            {
              name: '死亡时间',
              prop: 'SWSJ'
            },
            {
              name: '火化时间',
              prop: 'HHSJ'
            }
          ]
        },
        {
          title: '家庭成员信息',
          tableData: [],
          tablecoums: [
            {
              name: '姓名',
              prop: 'XM',
              isread: true
            },
            {
              name: '年龄',
              prop: 'NL',
              isread: true
            },
            {
              name: '与户主关系',
              prop: 'YHZGX',
              isread: true
            },
            {
              name: '身份证号',
              prop: 'SFZ',
              isread: true
            },
            {
              name: '户口所在地',
              prop: 'HKSZD',
              isread: true
            },
            {
              name: '性别',
              prop: 'SEX',
              isread: true
            },
            {
              name: '是否村集体股东',
              prop: 'IFCJTGD'
            },
            {
              name: '婚姻状况',
              prop: 'HYZK',
              isread: true
            },
            {
              name: '是否有不动产',
              prop: 'IFBDC'
            },
            {
              name: '是否机关事业单位',
              prop: 'YHZGX'
            },
            {
              name: '不动产编号',
              prop: 'BDCBH'
            },
            {
              name: '死亡时间',
              prop: 'SWSJ'
            },
            {
              name: '火化时间',
              prop: 'HHSJ'
            }
          ]
        }
      ],
      //当前行数据
      rowData: {},
      groupGuids: [],
      isADD11: false,
      newData11: {}
    }
  },
  computed: {},
  watch: {},
  components: { selectPicker, upLoad, FileData, viewScroll },
  created() {
    this.rowData = JSON.parse(this.$route.query.data)
    this.getNCSJTJS()
    if (this.rowData.IF_LJF == 5) {
      this.$confirm({
        title: '提示',
        message: '如需添加联建人信息请前往业务系统添加',
        btn: {
          okText: '确定',
          cancelText: '取消'
        }
      })
        .then(() => {
          // do something
        })
        .catch(() => {
          console.log('no')
        })
    }

    console.log(this.rowData)
    this.getTableDatas(this.rowData.PKID)
  },
  mounted() {
    this.getIFSILINGYIJIAN()
    this.getFile()
    this.getFile1()
    const sex = idCard(this.rowData.CERTIFICATECODE, 2)
    const years = idCard(this.rowData.CERTIFICATECODE, 3)
    console.log(sex, 'hezhilong')
    this.getTableData(this.rowData.CERTIFICATECODE, this.rowData.HOUSEAPPLICANT, sex == '女' ? 'W' : 'M', this.rowData.CUN)
    setTimeout(() => {
      //地址
      this.getAddress()
      this.sexName = sex
      this.JFData.AGE = years
    }, 1000)
    this.getWEIGAIData()
    this.getTableData11()
  },
  methods: {
    /**
             *
             * 1、打开后判断接口id：01103ebf-a884-4282-b996-78dd64196946
                  IF_WFH_WG字段是否为空，
                  ①将接口返回的值存入字段中：
                  WGJFDZ= detailAddress //危改建房地址
                  villageCode = villageCode //危改行政村
                  FWSL= data.data.data.length //房屋数量
                  WGOBJECTNO = objectNo //危改唯一标识符
                  ②为空的情况下调用接口1，根据返回值实现需求；
                  ③不为空的情况下避免重复调用接口，使用接口id：01103ebf-a884-4282-b996-78dd64196946相关字段判断实现需求；（相关字段WGJFDZ：危改建房地址，villageCode：危改行政村，FWSL：房屋数量，WGOBJECTNO ：危改唯一标识符）
             */
    //调用接口判断是否属于无房户或危房改造拆除重建
    onSearch(value) {
      this.$refs.viewScroll.seleData(value)
    },
    async getTableData11() {
      let data = [{ field: 'TO_ROW_GUID', value: this.rowData.ROW_GUID }]
      const res = await GSA_Search('af4270e8-e122-41b8-971a-6e4e2eaa5760', data)
      this.tableData11 = res.Data
    },
    //获取农村住房条件书
    async getNCSJTJS() {
      let params = {
        accessCode: '688bd3883572440a859dfd8ba9194e7b',
        cityCode: window.localStorage.getItem('citycode') ? window.localStorage.getItem('citycode') : '441300000000',
        params: {
          dataguid: '4611c0f9-6653-4e58-bf17-27a9ac28461d',
          searchObject: JSON.stringify([
            {
              field: 'to_row_guid',
              value: this.rowData.ROW_GUID,
              operator: '='
            }
          ])
        }
      }
      const res = await FileServerProxy(params)
      let data = JSON.parse(res.data.data).Data
      if (data.length > 0) {
        this.JFData.IF_GZS = data[0].IF_GZS
        if (data[0].IF_GZS == '5') {
          this.IF_GZS = '是'
        } else {
          this.IF_GZS = '否'
        }
        this.newData11 = data[0]
        this.isADD11 = false
      } else {
        this.isADD11 = true
      }
    },
    async saveTJS() {
      let formNCZJSJTJS = {}
      formNCZJSJTJS.TO_ROW_GUID = this.rowData.ROW_GUID
      formNCZJSJTJS.IF_GZS = this.JFData.IF_GZS
      if (!this.isADD11) {
        formNCZJSJTJS.PKID = this.newData11.PKID
        formNCZJSJTJS.ROW_GUID = this.newData11.ROW_GUID
      }
      const date = await GSA_Add('4611c0f9-6653-4e58-bf17-27a9ac28461d', this.isADD11, formNCZJSJTJS)
    },
    async getMessage2() {
      let params = {
        accessCode: '77ad6c1591e54d4fbc45ecc90374a2a210',
        cityCode: window.localStorage.getItem('citycode') ? window.localStorage.getItem('citycode') : '441300000000',
        params: {
          dataguid: 'af4270e8-e122-41b8-971a-6e4e2eaa5760',
          strParams: JSON.stringify([{ PKID: this.multipleSelection111[0].PKID }]),
          token: window.localStorage.getItem('token')
        }
      }
      const res = await FileServerProxy(params)
      if (JSON.parse(res.data.data).Success) {
        this.getTableData11()
      }
    },
    async saveBtn11() {
      let uuid1 = uuidv4()
      this.formData19.TO_ROW_GUID = this.JFData.ROW_GUID
      const date = await GSA_Add('af4270e8-e122-41b8-971a-6e4e2eaa5760', true, this.formData19)
      this.tableData11.push(this.formData19)
      this.formData19 = {
        CLMC: '',
        YJFYJ: '',
        FS: '',
        BZ: ''
      }
    },
    cancelBtn11() {
      this.formData19 = {
        CLMC: '',
        YJFYJ: '',
        FS: '',
        BZ: ''
      }
    },
    handleSelectionChange111(val) {
      this.multipleSelection111 = val
    },
    handleAddData() {
      if (!this.$refs.viewScroll.xuanze.id) {
        this.$toast.fail('先选择一条数据')
        return false
      }
      this.show20 = false
      this.IF_WFH_WG = this.$refs.viewScroll.xuanze.isFarmhouse == '0' ? '否' : this.$refs.viewScroll.xuanze.removeDangerMode == '拆除重建' ? '拆除重建' : '无房户'
      this.FJData.IF_WFH_WG = this.$refs.viewScroll.xuanze.isFarmhouse == '0' ? 645 : this.$refs.viewScroll.xuanze.removeDangerMode == '拆除重建' ? 646 : 644
      //需要判断房屋地址是否和现在的房屋地址是一样的
      console.log(this.$refs.viewScroll.xuanze)
      if (this.$refs.viewScroll.xuanze.detailAddress != this.rowData.CONSTRUCITONADDRESS) {
        this.isShow10 = true
      }
      console.log(this.FJData.IF_WFH_WG, 'this.FJData.IF_WFH_WG')
      this._saveDatas(this.$refs.viewScroll.xuanze)
    },
    async _saveDatas(query) {
      let data = {
        WGJFDZ: query.detailAddress,
        villageCode: query.villageCode,
        FWSL: query.FWSL,
        WGOBJECTNO: query.objectNo,
        PKID: this.rowData.PKID
      }
      const res = await GSA_Add('01103ebf-a884-4282-b996-78dd64196946', false, data)
    },
    async getWEIGAIData() {
      const res = await getApplyPersonInfoByIdCard(this.rowData.CERTIFICATECODE)
      if (res.data.data.length == 1) {
        //一对一
        this.weiGaiData = res.data.data
        //要调用接口保存数据
        this._saveDatas(this.weiGaiData[0])
        if (this.weiGaiData.detailAddress != this.rowData.CONSTRUCITONADDRESS) {
          this.isShow10 = true
        }
      } else if (res.data.data.length > 1) {
        //一对多
        this.weiGaiData = res.data.data
      } else {
        this.IF_WFH_WG = '否'
        this.FJData.IF_WFH_WG = 645
      }
    },
    handleGuanlian(data) {
      if (data == '关联') {
        this.show20 = true
      } else {
        if (this.weiGaiData.length == 1) {
          this.show20 = true
        } else {
          this.$toast.fail('存在多条危改记录，请先选择一条数据')
        }
      }
    },
    validator(val) {
      var idcardReg = /^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/
      return idcardReg.test(val)
    },
    getList(item) {
      console.log(item)
      this.groupGuids = item.groupGuid
    },
    async getAddress() {
      let params = {
        accessCode: '688bd3883572440a859dfd8ba9194e7b',
        cityCode: window.localStorage.getItem('citycode') ? window.localStorage.getItem('citycode') : '441300000000',
        params: {
          dataguid: '07ce160a-c484-45eb-a017-bc065ff55c37',
          searchObject: JSON.stringify([{ field: 'PKID', value: this.rowData.PKID }]),
          token: window.localStorage.getItem('token')
        }
      }
      const res = await FileServerProxy(params)
      let address = JSON.parse(res.data.data).Data[0]
      //将拿到的地址信息赋值给地址
      this.JFData.CONSTRUCITONADDRESS = address.S + address.X + address.TOWN + address.CUN
    },
    closeTable1: async function () {
      let saveType = false
      this.DHLY1.TODATA_GUID = this.JFData.ROW_GUID
      this.DHLY1.SIGNERNAME = this.JFData.CWSHR
      this.DHLY1.SIGNDATE = this.JFData.ZGSHR
      for (let key in this.DHLY1) {
        if (this.DHLY1[key]) {
          saveType = true
        } else {
          saveType = false
        }
      }
      if (!saveType) {
        console.log(this.DHLY1)
        this.$toast.fail('请填写必填项！')
      } else {
        let accessCode = '00b87f486f8b11ecacdb8c8caa46b312'
        let params = {
          accessCode: accessCode,
          cityCode: window.localStorage.getItem('citycode') ? window.localStorage.getItem('citycode') : '441300000000',
          params: {
            dataguid: '7f35dd69-b3e5-4ae0-8aa6-9b826418730d',
            strParams: JSON.stringify([this.DHLY1])
          }
        }
        const res = await QuerySignCallback(params)
        if (JSON.parse(res.data.data).Success) {
          //更新状态
          let formData2 = [
            {
              PKID: this.JFData.PKID,
              row_guid: this.JFData.ROW_GUID,
              SBZT: '退回'
            }
          ]
          let parms = {
            dataGuid: 'b68a5f59-7527-4cb8-bd8a-9b5451bb2d50',
            strParams: JSON.stringify(formData2)
          }
          let paramsendMEssage = {
            accessCode: '77ad6c1591e54d4fbc45ecc90374a2a2',
            cityCode: window.localStorage.getItem('citycode') ? window.localStorage.getItem('citycode') : '441300000000',
            params: parms
          }
          const res1 = await QuerySignCallback(paramsendMEssage)
          if (JSON.parse(res1.data.data).Success == true) {
            //调用gsa的接口
            let paramsend = {
              rowGuid: this.rowData.ROW_GUID,
              serialNumber: this.rowData.LSH
            }
            const res2 = await houseApplyDelete(paramsend)
            if (res2.data.code == 200) {
              setTimeout(() => {
                this.$router.push({
                  path: '/FeatureList'
                })
              }, 500)
            } else {
              this.$toast.fail('退回失败')
            }
          } else {
            this.$toast.fail('退回失败')
          }
        } else {
          this.$toast.fail('退回失败')
        }
      }
    },
    handleOk() {
      //展示
      this.shoulm2 = true
      this.shoulm1 = false
    },
    handleSelectionChange10(val) {
      this.multipleSelection10 = val
    },
    handleClose() {
      this.shoulm1 = false
    },
    //删除当前选中的数据
    async getMessage1() {
      let params = {
        accessCode: '77ad6c1591e54d4fbc45ecc90374a2a210',
        cityCode: window.localStorage.getItem('citycode') ? window.localStorage.getItem('citycode') : '441300000000',
        params: {
          dataguid: '0d3eacb5-d60b-46e4-a62e-9cf914ffca4a',
          strParams: JSON.stringify([{ PKID: this.multipleSelection10[0].PKID }]),
          token: window.localStorage.getItem('token')
        }
      }
      const res = await FileServerProxy(params)
      if (JSON.parse(res.data.data).Success) {
        this.$toast.success('删除成功')
        this.zgData.forEach((item) => {
          if (item.title == '家庭成员信息') {
            item.tableData.forEach((it, index) => {
              if (it.ROW_GUID == this.multipleSelection10[0].ROW_GUID) {
                item.tableData.splice(index, 1)
              }
            })
          }
        })
      } else {
        this.$toast.success('删除失败')
      }
    },
    //退回件方法
    backData: async function () {},
    //户主信息接口中的to_row_guid和 01103ebf-a884-4282-b996-78dd64196946该试图接口的row_guid是有管理关系的
    getIFSILINGYIJIAN: async function () {
      let data = [{ field: 'ROW_GUID', value: this.rowData.ROW_GUID }]
      const res = await GSA_Search('01103ebf-a884-4282-b996-78dd64196946', data)
      //返回值为空时  需要保存一下 要根据当前环节
    },
    onConfirm5(value) {
      this.JFData.SEX = value.DICID
      this.tableFrom[0].SEX = value.DICID
      this.sexName = value.DICNAME
      this.FormXB = value.DICNAME
      this.ENUM.XB = false
      this.ENUM.XB1 = false
    },
    onConfirm(value) {
      this.JFData.XB = value.DICID
      this.XB = value.DICNAME
      this.ENUM.XB = false
    },
    onConfirm6(value) {
      this.JFData.XZJDCZQK = value.DICID
      this.XZJDCZQK = value.DICNAME
      this.ENUM.SF2 = false
    },
    onConfirm7(value) {
      this.JFData.BUILDTYPE = value.DICID
      this.buildtype = value.DICNAME
      this.ENUM.NYD = false
    },
    onConfirm66(value) {
      this.JFData.SPLX = value.DICID
      this.SPLX = value.DICNAME
      this.ENUM.SPLX = false
    },
    onConfirm8(value) {
      this.JFData.LANDTYPE = value.DICID
      this.landtype = value.DICNAME
      this.ENUM.JFLX = false
      if (value.DICNAME == '农用地') {
        this.isShow3 = true
      } else {
        this.isShow3 = false
        this.isShow2 = false
      }
    },
    onConfirm9(value) {
        console.log(value,'hhh')
      this.JFData.BUILDSTOREY = value.DICID
      this.buildstorey = value.DICNAME
      this.ENUM.YDLX = false
    },
    onConfirm10(value) {
      this.JFData.SEWAGEDISPOSAL = value.DICID
      this.sewagedisposal = value.DICNAME
      this.ENUM.JGLX = false
    },
    onConfirm11(value) {
      this.JFData.STRUCTURETYPE = value.DICID
      this.structuretype = value.DICNAME
      this.ENUM.WSCLFS = false
    },
    onConfirm12(value) {
      this.JFData.ADJACENTOPINION = value.DICID
      this.adjacentopinion = value.DICNAME
      this.ENUM.TKBM = false
    },
    onConfirm13(value) {
      this.JFData.F_IFSILINGYIJIAN = value.DICID
      this.F_IFSILINGYIJIAN = value.DICNAME
      if (this.F_IFSILINGYIJIAN == '是') {
        this.isShow4 = true
      } else {
        this.isShow4 = false
      }
      this.ENUM.SFSJSLYJ = false
    },
    onConfirm30(value) {
      this.JFData.XZJDCZQK_JS = value.DICID
      this.XZJDCZQK_JS = value.DICNAME
      this.ENUM.XZJDCZQKS = false
    },
    onConfirm133(value) {
      this.JFData.IF_GZS = value.DICID
      this.IF_GZS = value.DICNAME
      this.ENUM.TKBMIF_GZS = false
    },
    onConfirm14(value) {
      this.tableFrom[0].YHZGX = value.DICID
      this.YHZGX = value.DICNAME
      this.ENUM.YHZGX = false
    },
    onConfirm15(value) {
      this.tableFrom[0].IFCJTGD = value.DICID
      this.IFCJTGD = value.DICNAME
      this.ENUM.CJT = false
    },
    onConfirm16(value) {
      this.tableFrom[0].IFBDC = value.DICID
      this.IFBDC = value.DICNAME
      this.ENUM.IFBDC = false
    },
    onConfirm17(value) {
      this.tableFrom[0].IFJGSYDW = value.DICID
      this.IFJGSYDW = value.DICNAME
      this.ENUM.IFJGSYDW = false
    },
    onConfirm18(value) {
      this.tableFrom[0].HYZK = value.DICID
      this.HYZK = value.DICNAME
      this.ENUM.HYZK = false
    },
    onConfirm19(val) {
      this.showPickerq = false
      this.tableFrom[0].SWSJ = this.dateFormat(val)
    },
    onConfirm20(val) {
      this.showPickerq1 = false
      this.tableFrom[0].HHSJ = this.dateFormat(val)
    },
    onConfirm21(value) {
      this.ENUM.DHLY = false
      this.DHLY1.DHLY = value.DICID
      this.DHLY = value.DICNAME
    },
    onConfirm33(value) {
      this.JFData.IF_WFH_WG = value.DICID
      this.IF_WFH_WG = value.DICNAME
      this.ENUM.IF_WFH_WG = false
    },
    onConfirm44(value) {
      this.JFData.IF_JXBL = value.DICID
      this.ENUM.IF_JXBL = false
    },
    // 格式化日期
    dateFormat(val) {
      let year = val.getFullYear()
      let month = val.getMonth() + 1
      let day = val.getDate()
      let hour = val.getHours()
      let minute = val.getMinutes()
      if (month >= 1 && month <= 9) {
        month = `0${month}`
      }
      if (day >= 1 && day <= 9) {
        day = `0${day}`
      }
      if (hour >= 0 && hour <= 9) {
        hour = `0${hour}`
      }
      if (minute >= 0 && minute <= 9) {
        minute = `0${minute}`
      }
      let time = `${year}-${month}-${day}`
      return time
    },
    //获取界面所需字典值
    getEnum(emitData = []) {
      emitData.forEach(async (item) => {
        console.log(this)
        let params = {
          accessCode: '688bd3883572440a859dfd8ba9194e7b',
          cityCode: window.localStorage.getItem('citycode') ? window.localStorage.getItem('citycode') : '441300000000',
          params: {
            dataguid: item,
            searchObject: JSON.stringify([]),
            token: window.localStorage.getItem('token')
          }
        }
        const res = await FileServerProxy(params)
        let newData = JSON.parse(res.data.data).Data
        switch (item) {
          case 'a8e5782d-9a59-48e4-b35b-654b9bb667ca':
            this.ENUM.XBARR = newData
            this.ENUM.XBARR.forEach((element) => {
              if (element.DICID == this.JFData.SEX) {
                this.sexName = element.DICNAME
              }
            })
            break
          case '2c478392-9c1b-40da-b941-41e4b8c9d6d3':
            this.ENUM.SFARR = newData
            this.ENUM.SFARR.forEach((element) => {
              if (element.DICID == this.JFData.XZJDCZQK) {
                this.XZJDCZQK = element.DICNAME
              }
            })
            break
          case 'db35edee-88e0-4fae-b14a-868ed4beb1d9':
            this.ENUM.NYDARR = newData
            this.ENUM.NYDARR.forEach((element) => {
              if (element.DICID == this.JFData.BUILDTYPE) {
                this.buildtype = element.DICNAME
              }
            })
            break
          case 'd2ec96d4-b5bc-404a-a9f1-34db915c694b':
            this.ENUM.JFLXARR = newData
            this.ENUM.JFLXARR.forEach((element) => {
              if (element.DICID == this.JFData.LANDTYPE) {
                this.landtype = element.DICNAME
                if (this.landtype == '农用地') {
                  this.isShow3 = true
                } else {
                  this.isShow3 = false
                  this.isShow2 = false
                }
              }
            })
            break
          case '52215e71-341a-452b-8823-a8d4aae058ab':
            this.ENUM.NYDARR = newData
            this.ENUM.NYDARR.forEach((element) => {
              if (element.DICID == this.JFData.YDLX_NYD) {
                this.YDLX_NYD = element.DICNAME
                if (this.YDLX_NYD == '其他') {
                  this.isShow2 = true
                } else {
                  this.isShow2 = false
                }
              }
            })
            break
          case 'a892e0f4-5fd6-42b4-b6c2-6e1fc5ebb5dc':
            this.ENUM.YDLXARR = newData
            this.ENUM.YDLXARR.forEach((element) => {
              if (element.DICID == this.JFData.BUILDSTOREY) {
                this.buildstorey = element.DICNAME
              }
            })
            break
          case 'f7f359ad-369c-4bf4-892c-294dceb5edef':
            this.ENUM.JGLXARR = newData
            this.ENUM.JGLXARR.forEach((element) => {
              if (element.DICID == this.JFData.SEWAGEDISPOSAL) {
                this.sewagedisposal = element.DICNAME
              }
            })
            break
          case 'b65d1943-66f4-49b1-b759-cd9f079dc0d3':
            this.ENUM.WSCLFSARR = newData
            this.ENUM.WSCLFSARR.forEach((element) => {
              if (element.DICID == this.JFData.STRUCTURETYPE) {
                this.structuretype = element.DICNAME
              }
            })
            break
          case '8670f99d-6127-45ec-be7c-8d76303bf38c':
            // this.ENUM.WSCLFSARR = newData
            this.ENUM.YHZGXARR = newData
            // this.ENUM.WSCLFSARR.forEach((element) => {
            //   if (element.DICID == this.JFData.STRUCTURETYPE) {
            //     this.structuretype = element.DICNAME
            //   }
            // })
            break
          case '173cb6af-d07c-4143-8169-8436af10264d':
            this.ENUM.HYZKARR = newData
            break
          case '67176c5f-ebad-4f7b-9cb4-d2a926f511cf':
            this.ENUM.DHLYARR = newData
            break
          case 'c3c0ecf0-2d89-4394-9f51-0fbb5de4a322':
            this.ENUM.IF_WFH_WGArr = newData
            break
          case '86d6eb80-8bcb-49f6-b5c3-462ac1ae585d':
            this.ENUM.IF_JXBLArr = newData
            break
          case 'd6aebfde-a9d7-441b-9f10-eb4c6651ea8b':
            this.ENUM.SPLXArr = newData
            this.ENUM.SPLXArr.forEach((element) => {
              if (element.DICID == this.JFData.SPLX) {
                this.SPLX = element.DICNAME
              }
            })
            break
          case 'd47fc1d9-c756-4a46-8259-7e65c82f26ba':
            this.ENUM.TKBMARR = newData
            this.ENUM.SFSJSLYJARR = newData
            this.ENUM.CJTARR = newData
            this.ENUM.IFBDCARR = newData
            this.ENUM.IFJGSYDWARR = newData
            this.ENUM.TKBMARR.forEach((element) => {
              if (element.DICID == this.JFData.ADJACENTOPINION) {
                this.adjacentopinion = element.DICNAME
                // this.F_IFSILINGYIJIAN = element.DICNAME
              }
            })
            this.ENUM.SFSJSLYJARR.forEach((item) => {
              if (item.DICID == this.JFData.F_IFSILINGYIJIAN) {
                this.F_IFSILINGYIJIAN = item.DICNAME
                if (this.F_IFSILINGYIJIAN == '是') {
                  this.isShow4 = true
                } else {
                  this.isShow4 = false
                }
              }
            })
            break
            case 'd9d4db60-e2f0-429f-b6c7-5cb1e9e6bb2d':
            this.ENUM.XZJDCZQKARR = newData
            this.ENUM.XZJDCZQKARR.forEach((element) => {
              if (element.DICID == this.JFData.XZJDCZQK_JS) {
                this.XZJDCZQK_JS = element.DICNAME
              }
            })


            break
        }
      })
    },
    setValue(name, value) {
      if (name == '其他') {
        this.isShow2 = true
      } else {
        this.isShow2 = false
      }
      this.JFData.YDLX_NYD = value
    },
    //获取相关材料
    getFile: async function () {
      let me = this
      let groupGuid = []
      this.file.forEach((item) => {
        groupGuid.push(item.groupGuid)
      })
      let params = {
        accessCode: '1fdcbce42c6d4748a020feba618d54b8',
        cityCode: window.localStorage.getItem('citycode') ? window.localStorage.getItem('citycode') : '441300000000',
        params: {
          groupGuid: groupGuid.join(','),
          toRowGuid: me.rowData.ROW_GUID,
          token: window.localStorage.getItem('token')
        }
      }
      const res1 = await FileServerProxy(params)
      let ress = JSON.parse(res1.data.data)
      if (ress.FilesInfo && ress.FilesInfo.length > 0) {
        ress.FilesInfo.forEach((element) => {
          this.file.forEach((item) => {
            if (element.GROUPGUID == item.groupGuid) {
              element['file'] = {
                name: element.FILENAME
              }
              this.getFileUrl(element, item)
            }
          })
        })
      }
    },
    //获取相关材料
    getFile1: async function () {
      let me = this
      let groupGuid = []
      this.FJData.forEach((item) => {
        groupGuid.push(item.groupGuid)
      })
      let params = {
        accessCode: '1fdcbce42c6d4748a020feba618d54b8',
        cityCode: window.localStorage.getItem('citycode') ? window.localStorage.getItem('citycode') : '441300000000',
        params: {
          groupGuid: groupGuid.join(','),
          toRowGuid: me.rowData.ROW_GUID,
          token: window.localStorage.getItem('token')
        }
      }
      const res1 = await FileServerProxy(params)
      let ress = JSON.parse(res1.data.data)
      if (ress.FilesInfo && ress.FilesInfo.length > 0) {
        ress.FilesInfo.forEach((element) => {
          this.FJData.forEach((item) => {
            if (element.GROUPGUID == item.groupGuid) {
              element['file'] = {
                name: element.FILENAME
              }
              item.FileName = element.FILENAME
              this.getFileUrl(element, item)
            }
          })
        })
      }
      console.log(this.FJData, 'hezhilong')
    },
    //相关材料
    afterRead(file) {
      // 此时可以自行将文件上传至服务器
      this.getFileServerUpload(file.file)
    },
    //获取附件文件流
    getFileUrl: async function (element, item) {
      let formData = new FormData()
      formData.append('accessCode', '98bcf528966e48ce896a8b3fd02d45d5')
      formData.append('cityCode', window.localStorage.getItem('citycode') ? window.localStorage.getItem('citycode') : '441300000000')
      formData.append(
        'paramStr',
        JSON.stringify({
          fileGuid: element.ROW_GUID
        })
      )
      let response = await dataTransFilePreview(formData)
      if (response) {
        var img = new Blob([new Int8Array(response.data, 0)], {
          type: response.headers['content-type']
        }) //type类型可自定义
        element['isImage'] = true
        element['url'] = window.URL.createObjectURL(img)
        console.log(element)
        item.fileList.push(element)
      }
    },
    delectFile: async function (file) {
      let fileguid = ''
      if (file.ROW_GUID) {
        fileguid = file.ROW_GUID
      } else {
        fileguid = this.fileGuid
      }
      if (fileguid) {
        let params = {
          accessCode: 'ce9b691634de4ebca68dc5bb638d07f4',
          cityCode: window.localStorage.getItem('citycode') ? window.localStorage.getItem('citycode') : '441300000000',
          params: {
            fileGuid: fileguid,
            token: window.localStorage.getItem('token')
          }
        }
        const res = await FileServerProxy(params)
        let data = JSON.parse(res.data.data).Success
        if (data) {
          this.$toast.success('删除成功!')
        }
      }
    },
    getFileServerUpload: async function (file) {
      // console.log(this.groupGuids,'hezhilonkkkk')
      let data = {
        toRowGuid: this.rowData.ROW_GUID,
        groupGuid: this.groupGuids,
        token: window.localStorage.getItem('token')
      }
      let formData = new FormData()
      formData.append('file', file)
      formData.append('accessCode', '7a3fc061c866434b8475d3775c9ddcea')
      formData.append('cityCode', window.localStorage.getItem('citycode') ? window.localStorage.getItem('citycode') : '441300000000')
      formData.append('token', window.localStorage.getItem('token'))
      formData.append('paramStr', JSON.stringify(data))
      const res = await dataTransFile(formData)
      let data1 = JSON.parse(res.data.data).FileList
      this.fileGuid = data1[0].FILEGUID
      if (data1[0].FILEGUID) {
        this.$toast.success('上传成功!')
      }
    },

    hiddenDialog() {
      this.showSelectTime = false
    },
    lookFile(item) {
      if (item.isImage == false) {
        if (ZWJSBridge) {
          ZWJSBridge.openLink({
            url: item.url
          })
            .then((res) => {})
            .catch((err) => {})
        }
      }
    },
    //获取户籍等信息
    /**
             *  表单保存
                688bd3883572440a859dfd8ba9194e7b11
                获取表单信息
                688bd3883572440a859dfd8ba9194e7b12
             */
    // 获取大数据信息
    getTableData: async function (idname, userName, sex, cityCode) {
      let params = {
        idCardNum: idname,
        userName: userName,
        sex: sex,
        cityCode: cityCode
      }
      const res = await housebigDataForUser(params)
      let newobj = res.data.data
      for (let key in newobj) {
        if (key == 'accumulationFund' && newobj[key]) {
          newobj[key].forEach((item) => {
            if (item.zrzhzt == '9') {
              //当zrzhzt  =  9 时 渲染
            } else {
              this.zgData.forEach((item) => {
                if (item.title == '机关事业单位' && newobj[key] !== null) {
                  newobj[key].forEach((items, index) => {
                    item.tableData[index] = {}
                    for (let k in items) {
                      switch (k) {
                        case 'xingming':
                          item.tableData[index].FAMILYNAME = items[k]
                          break
                        case 'zrzhzt':
                          item.tableData[index].ISORGANS = items[k] == '3' ? '6' : '5'
                          break
                        case 'dwmc':
                          item.tableData[index].ORGANSDISCRIBE = items[k]
                          break
                      }
                    }
                  })
                }
              })
            }
          })
        } else if (key == 'cremationInfo' && newobj[key]) {
          //火化信息
          this.zgData.forEach((item) => {
            if (item.title == '火化信息' && newobj[key] !== null) {
              newobj[key].forEach((items, index) => {
                item.tableData[index] = {}
                for (let k in items.ELC_LICENCE_STRUCT.DATA) {
                  switch (k) {
                    case 'DURNAME':
                      item.tableData[index].XM = items.ELC_LICENCE_STRUCT.DATA[k]
                      break
                    case 'DURNATION':
                      item.tableData[index].MZ = items.ELC_LICENCE_STRUCT.DATA[k]
                      break
                    case 'DURHOUSEHOLD':
                      item.tableData[index].DZ = items.ELC_LICENCE_STRUCT.DATA[k]
                      break
                    case 'DURDEATHDATE':
                      item.tableData[index].SWSJ = items.ELC_LICENCE_STRUCT.DATA[k]
                      break
                    case 'DURINTERVAL':
                      item.tableData[index].HHSJ = items.ELC_LICENCE_STRUCT.DATA[k]
                      break
                  }
                }
              })
            }
          })
        } else if (key == 'marriageInfo' && newobj[key]) {
          //婚姻信息
          this.zgData.forEach((item) => {
            if (item.title == '婚姻信息' && newobj[key] !== null) {
              newobj[key].forEach((items, index) => {
                item.tableData[index] = {}
                for (let k in items) {
                  switch (k) {
                    case 'fName':
                      item.tableData[index].FAMILYNAME = items[k]
                      break
                    case 'businessType':
                      item.tableData[index].MERRIAGECONDITION = items[k] == '结婚登记' ? '7' : '8'
                      break
                    case 'system_note':
                      item.tableData[index].MERRIAGEDISCRIBE = items[k]
                      break
                  }
                }
              })
            }
          })
        } else if (key == 'realEstateCertificate' && newobj[key]) {
          //不动产信息
          this.zgData.forEach((item) => {
            if (item.title == '不动产权信息' && newobj[key] !== null) {
              newobj[key].forEach((items, index) => {
                item.tableData[index] = {}
                for (let k in items.ELC_LICENCE_STRUCT.DATA) {
                  switch (k) {
                    case 'QLR':
                      item.tableData[index].FAMILYNAME = items.ELC_LICENCE_STRUCT.DATA[k]
                      break
                    case 'ZSGBH':
                      item.tableData[index].REALESTATENUMBER = items.ELC_LICENCE_STRUCT.DATA[k]
                      break
                    case 'QLQTZK':
                      item.tableData[index].REALESTATEDISCRIBE = items.ELC_LICENCE_STRUCT.DATA[k]
                      break
                  }
                }
              })
            }
          })
        } else if (key == 'residenceBooklet' && newobj[key]) {
          //户籍家庭信息
          this.zgData.forEach((item) => {
            if (item.title == '户籍家庭成员信息' && newobj[key] !== null) {
              newobj[key].forEach((items, index) => {
                item.tableData[index] = {}
                for (let k in items.ELC_LICENCE_STRUCT.DATA) {
                  switch (k) {
                    case 'CZRKYHZGX':
                      item.tableData[index].HOUSERELATIONSHIP = items.ELC_LICENCE_STRUCT.DATA[k]
                      break
                    case 'CZRKXM':
                      item.tableData[index].FAMILYNAME = items.ELC_LICENCE_STRUCT.DATA[k]
                      break
                    case 'CZRKHYZK':
                      item.tableData[index].HOUSEMERRIAGE = items.ELC_LICENCE_STRUCT.DATA[k]
                      break
                    case 'CZRKXB':
                      item.tableData[index].FAMILYSEX = items.ELC_LICENCE_STRUCT.DATA[k]
                      break
                    case 'CZRKGMSFHM':
                      item.tableData[index].FAMILYIDCARD = items.ELC_LICENCE_STRUCT.DATA[k]
                      item.tableData[index].FAMILYAGE = idCard(items.ELC_LICENCE_STRUCT.DATA[k], 3)
                      item.tableData[index].HOUSEBIRTHDAY = idCard(items.ELC_LICENCE_STRUCT.DATA[k], 1)
                      break
                    case 'CZRKYHZGX':
                      item.tableData[index].YHZGX = items.ELC_LICENCE_STRUCT.DATA[k]
                      break
                  }
                }
              })
            }
          })
        } else if (key == 'villageCollectiveShareholders') {
          //村集体股东
        }
      }
      this.zgData.forEach((item) => {
        //需要给家庭成员中添加数据
        if (item.title == '家庭成员信息') {
          //如果it.tableData数组中有数据需要判断是否包含户籍中的数据
          if (item.tableData.length == 0) {
            this.zgData[0].tableData.forEach((em) => {
              item.tableData.push({
                XM: em.FAMILYNAME,
                NL: em.FAMILYAGE,
                YHZGX:
                  em.HOUSERELATIONSHIP == '户主'
                    ? '156'
                    : em.HOUSERELATIONSHIP == '孙女'
                    ? '267'
                    : em.HOUSERELATIONSHIP == '夫妻'
                    ? '28'
                    : em.HOUSERELATIONSHIP == '长子'
                    ? '30'
                    : em.HOUSERELATIONSHIP == '次子'
                    ? '166'
                    : em.HOUSERELATIONSHIP == '孙子'
                    ? '167'
                    : em.HOUSERELATIONSHIP == '次女'
                    ? '168'
                    : em.HOUSERELATIONSHIP == '长女'
                    ? '169'
                    : '170',
                SFZ: em.FAMILYIDCARD,
                SEX: em.FAMILYSEX,
                IFCJTGD: em.IFCJTGD,
                HYZK: em.HOUSEMERRIAGE == '未婚' ? '8' : em.HOUSEMERRIAGE == '已婚' ? '7' : '182',
                IFBDC: em.IFBDC,
                BDCBH: em.BDCBH,
                SWSJ: em.SWSJ,
                HHSJ: em.HHSJ
              })
            })
          } else {
            // this.zgData[0].tableData.forEach((em,index) => {
            //     if (em.FAMILYNAME != item.tableData[index].XM) {
            //       item.tableData.push({
            //         XM: em.FAMILYNAME,
            //         NL: em.FAMILYAGE,
            //         YHZGX: em.HOUSERELATIONSHIP == '户主'
            //                 ? '156'
            //                 : em.HOUSERELATIONSHIP == '孙女'
            //                   ? '267'
            //                   : em.HOUSERELATIONSHIP == '夫妻'
            //                     ? '28'
            //                     : em.HOUSERELATIONSHIP == '长子'
            //                       ? '30'
            //                       : em.HOUSERELATIONSHIP == '次子'
            //                         ? '166'
            //                         : em.HOUSERELATIONSHIP == '孙子'
            //                           ? '167'
            //                           : em.HOUSERELATIONSHIP == '次女'
            //                             ? '168'
            //                             : em.HOUSERELATIONSHIP == '长女'
            //                               ? '169'
            //                               : '170',
            //         SFZ: em.FAMILYIDCARD,
            //         SEX: em.FAMILYSEX,
            //         IFCJTGD: em.IFCJTGD,
            //         HYZK:em.HOUSEMERRIAGE == '未婚' ? '8':em.HYZK == '已婚'?'7':'182',
            //         IFBDC: em.IFBDC,
            //         YHZGX: em.YHZGX,
            //         BDCBH: em.BDCBH,
            //         SWSJ: em.SWSJ,
            //         HHSJ: em.HHSJ,
            //       })
            //     }
            // })
          }
          console.log(this.zgData[0].tableData, 'this.zgData[0].tableData')
          console.log(item.tableData, 'item.tableDataitem.tableData')
        }
      })
    },
    getTableDatas: async function (PKID = '31919') {
      let par = {
        formGuid: '16c6fc11-4d1a-4900-b144-ee1fc2fbe010',
        tableKeyField: 'house_apply.PKID',
        keyValue: PKID,
        formType: 'edit',
        time: '1659320128182',
        viewParameter: {}
      }
      let params1 = {
        accessCode: '688bd3883572440a859dfd8ba9194e7b12',
        cityCode: window.localStorage.getItem('citycode') ? window.localStorage.getItem('citycode') : '441300000000',
        params: par
      }
      const res = await FileServerProxy(params1)
      //FormData是一个对象
      debugger
      let newData = JSON.parse(res.data.data).FormData
      //将对象的keys组合成数组
      this.keys = [] // 所有视图
      this.values = [] //视图对应的值
      for (let key in newData) {
        newData.hasOwnProperty(key) && this.keys.push(key)
        newData.hasOwnProperty(key) && this.values.push(newData[key])
        //赋值
        //从当前行赋值 01103ebf-a884-4282-b996-78dd64196946
        if (key == '01103ebf-a884-4282-b996-78dd64196946') {
          newData[key].forEach((item) => {
            for (let k in this.JFData) {
              Object.keys(item).forEach((it) => {
                if (k == it) {
                  this.JFData[k] = item[it] != null ? item[it] : ''
                }
              })
            }
          })
        }
        //赋值表格数据
        if (key == '0d3eacb5-d60b-46e4-a62e-9cf914ffca4a') {
          //户籍家庭成员
          this.zgData.forEach((item) => {
            if (item.title == '家庭成员信息') {
              item.tableData = newData[key]
            }
          })
        }
      }
      console.log(this.zgData, 'jjjjjjjjjjjjjjjjjjjjjjjj')
      //判断当前数据中是否有户主信息
      this.zgData.forEach((item) => {
        if (item.title == '户籍家庭成员信息') {
          item.tableData.forEach((it) => {
            console.log(it.HOUSERELATIONSHIP, '小何')
            if (it.HOUSERELATIONSHIP == '户主') {
              console.log(it, 'name')
              this.JFData.XM = it.FAMILYNAME
              this.JFData.NL = it.FAMILYAGE
              this.JFData.SFZH = it.FAMILYIDCARD
              this.JFData.HJDZ = it.HKSZD
              this.XB = it.FAMILYSEX
              this.JFData.XB = it.FAMILYSEX
            }
          })
        }
      })
      let emitData = [
        'a8e5782d-9a59-48e4-b35b-654b9bb667ca',
        '2c478392-9c1b-40da-b941-41e4b8c9d6d3',
        'db35edee-88e0-4fae-b14a-868ed4beb1d9',
        'd2ec96d4-b5bc-404a-a9f1-34db915c694b',
        'a892e0f4-5fd6-42b4-b6c2-6e1fc5ebb5dc',
        'f7f359ad-369c-4bf4-892c-294dceb5edef',
        'b65d1943-66f4-49b1-b759-cd9f079dc0d3',
        '86d6eb80-8bcb-49f6-b5c3-462ac1ae585d',
        '8670f99d-6127-45ec-be7c-8d76303bf38c',
        '173cb6af-d07c-4143-8169-8436af10264d',
        '67176c5f-ebad-4f7b-9cb4-d2a926f511cf',
        '52215e71-341a-452b-8823-a8d4aae058ab',
        'c3c0ecf0-2d89-4394-9f51-0fbb5de4a322',
        '86d6eb80-8bcb-49f6-b5c3-462ac1ae585d',
        'd6aebfde-a9d7-441b-9f10-eb4c6651ea8b',
        'd47fc1d9-c756-4a46-8259-7e65c82f26ba',
        'd9d4db60-e2f0-429f-b6c7-5cb1e9e6bb2d'
      ]
      //获取字典值 性别
      this.getEnum(emitData)
    },
    SaveTableDatas: async function () {
      //判断必填项
      //组织formData参数
      this.saveTJS()
      let newObj = {}
      var res1 = await GJDBFunction2('up_querybigdata', [{ I_USERID: "'" + this.JFData.ROW_GUID + "'", I_TYPE: 1 }])
      console.log(res1)
      var p = new Promise((resolve, reject) => {
        //做一些异步操作
        this.keys.forEach(async (item) => {
          switch (item) {
            case '01103ebf-a884-4282-b996-78dd64196946':
              newObj[item] = [this.JFData]
              break
            case '0d3eacb5-d60b-46e4-a62e-9cf914ffca4a':
              //当前为家庭成员信息
              this.zgData.forEach((it) => {
                if (it.title == '家庭成员信息') {
                  const newData = it.tableData.filter((items) => {
                    return !items.PKID
                  })
                  //添加行数据需要生成一个uuid
                  newData.forEach((key) => {
                    let uuid = uuidv4()
                    key.TO_ROW_GUID = this.JFData.ROW_GUID
                    key.ROW_GUID = uuid
                    key.eca_RowState = 'added'
                  })
                  newObj[item] = newData
                }
              })
              break
            case 'f3528f44-09a1-4be2-afec-1050cf24e3b9':
              //当前为不动产权信息
              this.zgData.forEach((it) => {
                if (it.title == '不动产权信息') {
                  if (it.tableData.length > 0) {
                    const newData = it.tableData.filter((items) => {
                      return !items.PKID
                    })
                    //添加行数据需要生成一个uuid
                    newData.forEach((key) => {
                      let uuid = uuidv4()
                      key.TO_ROW_GUID = this.JFData.ROW_GUID
                      key.ROW_GUID = uuid
                      key.eca_RowState = 'added'
                    })
                    newObj[item] = newData
                  }
                }
              })
              break
            case '82a8f76f-ac45-46c4-bb16-2bded8c00c63':
              //当前为家庭成员信息
              this.zgData.forEach((it) => {
                if (it.title == '火化信息') {
                  if (it.tableData.length > 0) {
                    const newData = it.tableData.filter((items) => {
                      return !items.PKID
                    })
                    //添加行数据需要生成一个uuid
                    newData.forEach((key) => {
                      let uuid = uuidv4()
                      key.TO_ROW_GUID = this.JFData.ROW_GUID
                      key.ROW_GUID = uuid
                      key.eca_RowState = 'added'
                    })
                    newObj[item] = newData
                  }
                }
              })
              break
            case '7f810eb7-6776-4ba5-9bb0-6f130d17ba02':
              //当前为家庭成员信息
              this.zgData.forEach((it) => {
                if (it.title == '婚姻信息') {
                  if (it.tableData.length > 0) {
                    const newData = it.tableData.filter((items) => {
                      return !items.PKID
                    })
                    //添加行数据需要生成一个uuid
                    newData.forEach((key) => {
                      let uuid = uuidv4()
                      key.TO_ROW_GUID = this.JFData.ROW_GUID
                      key.ROW_GUID = uuid
                      key.eca_RowState = 'added'
                    })
                    newObj[item] = newData
                  }
                }
              })
              break
            case '15fb50fb-fe82-4306-b54b-3f225cfd1cc4':
              //当前为家庭成员信息
              //判断什么时候新增 什么时候修改
              if (res1[0].HJJTCY != 0) {
              } else {
                this.zgData.forEach((it) => {
                  if (it.title == '户籍家庭成员信息') {
                    if (it.tableData.length > 0) {
                      const newData = it.tableData.filter((items) => {
                        return !items.PKID
                      })
                      //添加行数据需要生成一个uuid
                      newData.forEach((key) => {
                        let uuid = uuidv4()
                        key.TO_ROW_GUID = this.JFData.ROW_GUID
                        key.ROW_GUID = uuid
                        key.eca_RowState = 'added'
                        key.FAMILYSEX = key.FAMILYSEX == '男性' ? '3' : '4'
                        key.HOUSEMERRIAGE = key.HOUSEMERRIAGE == '未婚' ? '8' : key.HYZK == '已婚' ? '7' : '182'
                        key.HOUSERELATIONSHIP =
                          key.HOUSERELATIONSHIP == '户主'
                            ? '156'
                            : key.HOUSERELATIONSHIP == '孙女'
                            ? '267'
                            : key.HOUSERELATIONSHIP == '夫妻'
                            ? '28'
                            : key.HOUSERELATIONSHIP == '长子'
                            ? '30'
                            : key.HOUSERELATIONSHIP == '次子'
                            ? '166'
                            : key.HOUSERELATIONSHIP == '孙子'
                            ? '167'
                            : key.HOUSERELATIONSHIP == '次女'
                            ? '168'
                            : key.HOUSERELATIONSHIP == '长女'
                            ? '169'
                            : '170'
                      })
                      newObj[item] = newData
                    }
                  }
                })
              }
              break
            case '8c465b63-ce4a-4133-bea5-3b51dd0c64a1':
              //当前为家庭成员信息
              this.zgData.forEach((it) => {
                if (it.title == '机关事业单位') {
                  if (it.tableData.length > 0) {
                    const newData = it.tableData.filter((items) => {
                      return !items.PKID
                    })
                    //添加行数据需要生成一个uuid
                    newData.forEach((key) => {
                      let uuid = uuidv4()
                      key.TO_ROW_GUID = this.JFData.ROW_GUID
                      key.ROW_GUID = uuid
                      key.eca_RowState = 'added'
                    })
                    newObj[item] = newData
                  }
                }
              })
              break
          }
        })
        resolve(newObj)
      })
      p.then(async (p) => {
        let par = {
          formData: JSON.stringify(p),
          viewParameter: {}
        }
        let params1 = {
          accessCode: '688bd3883572440a859dfd8ba9194e7b11',
          cityCode: window.localStorage.getItem('citycode') ? window.localStorage.getItem('citycode') : '441300000000',
          params: par
        }
        const res = await FileServerProxy(params1)
        let data = JSON.parse(res.data.data).Success
        if (data) {
          this.$toast.success('保存成功')
        } else {
          this.$toast.success('保存失败')
        }
      })
    },
    //提交method
    submitTable: async function () {
      //先保存
      var saveType = 0
      //判断必填项
      console.log(this.newObj)
      if (this.landtype != '农用地') {
        this.YDLX_NYD_QT = ''
      }
      if (this.F_IFSILINGYIJIAN == '是' && this.adjacentopinion == '') {
        this.$toast.fail('请填写必填项')
        return
      }
      for (let key in this.JFData) {
        for (let ke in this.newObj) {
          if (key == ke) {
            this.newObj[ke] = this.JFData[key]
          }
        }
      }
      console.log(this.newObj, 'hezhilong')
      //先判断是否必填字段为空
      for (let k in this.newObj) {
        if (this.newObj[k]) {
        } else {
          saveType = saveType + 1
        }
      }
      //判断
      if (this.isShow3 && !this.JFData.YDLX_NYD) {
        this.$toast.fail('请选择农用地信息')
        return
      }
      if (this.isShow2 && !this.JFData.YDLX_NYD_QT) {
        this.$toast.fail('请选择农用地其他内容信息')
        return
      }
      if (this.XZJDCZQK == '保留' && !this.JFData.XZJDCZQK_BL) {
        this.$toast.fail('请输入保留字段')
        return
      }
      /**
                   *建筑面积小于  层数+1*占地面积  判断
                      （1）“占地面积 Buildarea 字段值”  加  “ 层数buildstorey字段值 +1”之和 大于“建筑面积 housefloorarea 值”后，表单可以保存成功。
                      （2）“占地面积 Buildarea 字段值”  加  “ 层数buildstorey字段值 +1”之和 小于“建筑面积 housefloorarea 值”后，表单侧保存不成功并提示“住房建筑面积≤房屋占地面积*（建筑层数+1），请重新输入！！！
                   */
      console.log(saveType)
      if (saveType == 0) {
        let buildstorey = Number(
          this.JFData.BUILDSTOREY == '一层'
            ? '552'
            : this.JFData.BUILDSTOREY == '二层'
            ? '553'
            : this.JFData.BUILDSTOREY == '三层'
            ? '554'
            : this.JFData.BUILDSTOREY == '四层'
            ? '555'
            : this.JFData.BUILDSTOREY == '五层'
            ? '556'
            : this.JFData.BUILDSTOREY == '六层'
            ? '557'
            : this.JFData.BUILDSTOREY == '七层'
            ? '558'
            : this.JFData.BUILDSTOREY == '八层'
            ? '559'
            : this.JFData.BUILDSTOREY == '九层'
            ? '660'
            : '661'
        )
        //SPLX=622、623的时候不对建筑面积小于  层数+1*占地面积规则做判断
        console.log(buildstorey)
        if (this.FJData.SPLX == 624) {
          if (Number(this.JFData.BUILDAREA) * (buildstorey + 1) >= Number(this.JFData.HOUSEFLOORAREA)) {
            this.SaveTableDatas()
            this.$router.push({
              path: '/TreeSelect1',
              query: {
                data: JSON.stringify(this.rowData),
                Villgetrial: '1'
              }
            })
          } else {
            saveType = false
            this.$toast.fail('住房建筑面积≤房屋占地面积*(建筑层数+1),请重新输入')
          }
        } else {
          this.SaveTableDatas()
          this.$router.push({
            path: '/TreeSelect1',
            query: {
              data: JSON.stringify(this.rowData),
              Villgetrial: '1'
            }
          })
        }
      } else {
        this.$toast.fail('请填写必填项！')
      }
    },
    //退回
    blackTable: async function () {
      this.shoulm1 = true
    },
    async handleAddusers11(data) {
      if (data == '添加') {
        this.isShow111 = true
      } else {
        this.$confirm({
          title: '提示',
          message: '确认删吗？',
          btn: {
            okText: '确定',
            cancelText: '取消'
          }
        })
          .then(() => {
            // do something
            this.getMessage2()
          })
          .catch(() => {
            console.log('no')
          })
      }
    },
    handleAddusers(name) {
      if (name == '添加') {
        this.isShow = true
        this.dialogTitle = '新增'
        this.YHZGX = ''
        this.IFCJTGD = ''
        this.IFBDC = ''
        this.IFJGSYDW = ''
        this.currentDate = ''
        this.HYZK = ''
        this.FormXB = ''
        this.tableFrom = [
          {
            XM: '',
            SFZ: '',
            NL: '',
            SFZH: '',
            HKSZD: '',
            YHZGX: '',
            SEX: '',
            IFCJTGD: '',
            IFCJTGD: '',
            IFBDC: '',
            BDCBH: '',
            IFJGSYDW: '',
            SWSJ: '',
            HHSJ: '',
            HYZK: ''
          }
        ]
      } else if (name == '删除') {
        this.$confirm({
          title: '提示',
          message: '确认删吗？',
          btn: {
            okText: '确定',
            cancelText: '取消'
          }
        })
          .then(() => {
            // do something
            this.getMessage1()
          })
          .catch(() => {
            console.log('no')
          })
      } else {
        console.log(this.multipleSelection10, 'this.multipleSelection10')
        if (this.multipleSelection10.length == 0) {
          this.$toast.fail('请选择一行数据')
        } else if (this.multipleSelection10.length > 1) {
          this.$toast.fail('只能选择选择一行数据')
        } else {
          this.isShow = true
          this.dialogTitle = '修改'
          this.tableFrom = this.multipleSelection10
          this.YHZGX = this.multipleSelection10[0].YHZGX
          this.FormXB = this.multipleSelection10[0].SEX
          this.IFBDC = this.multipleSelection10[0].IFBDC
          this.IFJGSYDW = this.multipleSelection10[0].IFJGSYDW
          this.currentDate = this.multipleSelection10[0].currentDate
          this.HYZK = this.multipleSelection10[0].HYZK
        }
      }
    },
    saveBtn() {
      let nowLine = 0
      let bitianxiang = {
        XM: '',
        SEX: '',
        SFZ: '',
        NL: '',
        YHZGX: ''
      }
      Object.keys(this.tableFrom[0]).forEach((it) => {
        Object.keys(bitianxiang).forEach((item) => {
          if (it == item) {
            if (this.tableFrom[0][it]) {
            } else {
              console.log(it)
              nowLine += 1
            }
          }
        })
      })
      if (nowLine == 0) {
        this.zgData.forEach((item) => {
          if (item.title == '家庭成员信息') {
            //深拷贝一层
            let newObj = JSON.parse(JSON.stringify(this.tableFrom[0]))
            if (this.dialogTitle == '新增') {
              //组织家庭成员信息
              item.tableData.push(newObj)
            } else {
              item.tableData.forEach(async (it) => {
                if (it.ROW_GUID == this.tableFrom[0].ROW_GUID) {
                  it = this.tableFrom[0]
                  let params = {
                    accessCode: '77ad6c1591e54d4fbc45ecc90374a2a2',
                    cityCode: window.localStorage.getItem('citycode') ? window.localStorage.getItem('citycode') : '441300000000',
                    params: {
                      dataguid: '0d3eacb5-d60b-46e4-a62e-9cf914ffca4a',
                      strParams: JSON.stringify([{ PKID: it.PKID, ...it }])
                    }
                  }
                  const res = await FileServerProxy(params)
                  if (JSON.parse(res.data.data).Success) {
                    this.$toast.success('修改成功')
                  } else {
                    this.$toast.fail('修改失败')
                  }
                }
              })
            }
            console.log(item.tableData)
          }
        })
        this.cancelBtn()
      } else {
        this.$toast.fail('请填写必填项!')
        this.isShow = true
      }
    },
    cancelBtn() {
      // Object.keys(this.tableFrom[0]).forEach((it) => {
      //   this.tableFrom[0][it] = ''
      // })
      // console.log(this.tableFrom[0])
      this.isShow = false
    },
    //更换Key
    convertKey(arr, key) {
      let newArr = []
      arr.forEach((item, index) => {
        let newObj = {}
        for (var i = 0; i < key.length; i++) {
          newObj[key[i]] = item[Object.keys(item)[i]]
        }
        newArr.push(newObj)
      })
      console.log(newArr)
      return newArr
    },
    //选择户主信息
    handleSelectUsers: async function () {
      this.zgData.forEach((item) => {
        if (item.title == '家庭成员信息') {
          this.tableData1 = item.tableData
        }
      })
      this.tableData1.forEach((item) => {
        for (let k in item) {
          if (k == 'NL') {
            item.AGE = item[k]
          } else if (k == 'XM') {
            item.HOUSEAPPLICANT = item[k]
          } else if (k == 'SFZ') {
            item.CERTIFICATECODE = item[k]
          }
        }
      })
      console.log(this.tableData1, '=================')
      this.isshowUsers = true
    },
    //获取当前选择的行数据
    handleSelectionChange1(val) {
      this.multipleSelection1 = val
      console.log(this.multipleSelection1, 'multipleSelection1')
    },
    closeTable() {
      let me = this
      if (me.multipleSelection1.length > 1) {
        me.$toast.fail('只能选择一行数据！')
      } else {
        if (me.multipleSelection1.length == 1) {
          //将选择的值赋给表单
          me.multipleSelection1.forEach((item) => {
            for (let key in me.JFData) {
              Object.keys(item).forEach((it) => {
                if (it == key) {
                  me.JFData[key] = item[it]
                }
              })
            }
          })
        }
        console.log(me.JFData, 'hezhilong')
        me.isshowUsers = false
      }
    },
    handleLJD(data) {
      console.log(data)
      if (data.FileName == '无') {
        this.$toast.fail('暂无数据')
      } else {
        const link = document.createElement('a')
        const evt = document.createEvent('HTMLEvents')
        evt.initEvent('click', false, false)
        link.href = data.fileList[0].url
        link.target = '_blank'
        link.style.display = 'none'
        document.body.appendChild(link)
        link.click()
        window.URL.revokeObjectURL(link.href)
      }
    }
  }
}
</script>
<style lang="scss">
.action {
  .title {
    font-size: 16px;
    text-align: center;
    font-weight: 600;
    height: 30px;
    line-height: 30px;
    border-bottom: 1px solid #ccc;
  }
}

#Villagetrial {
  height: 100vh;
  overflow: auto;
  background: #ffffff;
  font-family: 'Helvetica Neue', Helvetica, STHeiTi, sans-serif;
  font-size: 13px;

  .van-tab--active {
    font-weight: bold;
    color: black;
  }

  .title {
    width: 100%;
    height: 30px;
    line-height: 30px;
    font-size: 13px;
    position: relative;
  }

  .top {
    background: #ffffff;
    padding-bottom: 10px;
    text-align: center;
    font-size: 16px;
  }

  .back {
    height: 40px;
    background-color: #eee;
    line-height: 40px;
    padding: 0 4px;
  }

  .content {
    width: 100%;
    height: calc(100% - 90px);
    overflow: auto;
    padding: 10px;

    .subTitle {
      width: 100%;
      height: 40px;
      line-height: 40px;
      font-size: 14px;
      position: relative;
      display: flex;
      align-items: center;
      border-bottom: 1px solid #9b9b9b;
      padding-left: 10px;

      .line {
        width: 6px;
        height: 26px;
        background: #3f8ffc;
        display: inline-block;
        margin-right: 10px;
      }
    }
  }

  .inputWrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #ebedf0;
  }

  .footer {
    text-align: center;
    line-height: 50px;
  }

  .top {
    background: #ffffff;
    text-align: center;
    font-weight: 1000;
  }

  .van-field__control {
    text-align: right !important;
  }

  .el-table thead {
    color: black;
  }

  .van-cell {
    color: black;
    font-size: 14px !important;
  }

  .content1 {
    .content {
      padding: 16px 16px 160px;
    }
  }

  .van-field__label {
    color: black;
  }

  .van-popup {
    border-radius: 10px;

    .con_box {
      width: 270px;
      line-height: 1;
      text-align: center;
      color: #4d5c82;
      padding: 15px;
      box-sizing: border-box;

      > h3 {
        font-size: 20px;
        margin-top: 10px;
        margin-bottom: 20px;
      }

      > p {
        font-size: 14px;
        margin-bottom: 30px;
      }

      .btnv {
        display: flex;
        justify-content: space-between;

        > span {
          display: block;
          width: 114px;
          background-color: #e0e5f5;
          text-align: center;
          line-height: 44px;
          font-size: 14px;
        }

        > span:last-of-type {
          background-color: #1288fe;
          color: #ffffff;
        }
      }
    }
  }
}
</style>

<style>
#Villagetrial .van-field__label {
  width: 8em;
}
</style>
